aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-05-29 21:46:37 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-05-29 21:46:37 +0200
commit53da3d77c5253804a02fbf93a61e7b4ec0913c4b (patch)
tree9197d928608fb8d17ddb6b3bb48338924cf3eccb
parent44d443998796f75f538c66a48d93b48d39a90db7 (diff)
downloadcqrlogo-53da3d77c5253804a02fbf93a61e7b4ec0913c4b.tar.gz
cqrlogo-53da3d77c5253804a02fbf93a61e7b4ec0913c4b.tar.zst
add g_type_init() for glib < 2.36
-rw-r--r--cqrlogo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cqrlogo.c b/cqrlogo.c
index 900c6f5..6513ef8 100644
--- a/cqrlogo.c
+++ b/cqrlogo.c
@@ -88,6 +88,11 @@ int main(int argc, char **argv) {
regfree(&preg);
free(pattern);
+
+ /* initialize type system
+ * Since GLib 2.36, the type system is initialised automatically
+ * and this function does nothing. */
+ g_type_init();
if ((pixbuf = encode_qrcode(http_referer)) == NULL) {
if ((pixbuf = encode_qrcode(server_name)) == NULL) {