diff options
author | Christian Hesse <mail@eworm.de> | 2013-05-29 21:46:37 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-05-29 21:46:37 +0200 |
commit | 53da3d77c5253804a02fbf93a61e7b4ec0913c4b (patch) | |
tree | 9197d928608fb8d17ddb6b3bb48338924cf3eccb | |
parent | 44d443998796f75f538c66a48d93b48d39a90db7 (diff) | |
download | cqrlogo-53da3d77c5253804a02fbf93a61e7b4ec0913c4b.tar.gz cqrlogo-53da3d77c5253804a02fbf93a61e7b4ec0913c4b.tar.zst |
add g_type_init() for glib < 2.36
-rw-r--r-- | cqrlogo.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) { |