From 53da3d77c5253804a02fbf93a61e7b4ec0913c4b Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 29 May 2013 21:46:37 +0200 Subject: add g_type_init() for glib < 2.36 --- cqrlogo.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cqrlogo.c') 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) { -- cgit v1.2.3-54-g00ecf