aboutsummaryrefslogtreecommitdiffstats
path: root/cqrlogo.c
diff options
context:
space:
mode:
Diffstat (limited to 'cqrlogo.c')
-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) {