summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-image.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2014-11-04 16:30:23 +0000
committerRichard Hughes <richard@hughsie.com>2014-11-04 16:30:24 +0000
commitcaa4d69ddbc4a3fd4a570ac73b64ac36a34b4a02 (patch)
tree3ca7f5f7c251c78ccdb593cd25bec135569bd554 /libappstream-glib/as-image.c
parent3b5399778818cc45ddefd9138a02b5ba2626a1d9 (diff)
downloadappstream-glib-caa4d69ddbc4a3fd4a570ac73b64ac36a34b4a02.tar.gz
trivial: Don't show warnings when doing distcheck
It seems that the compiler really does require an initializer when using the _cleanup_ macros.
Diffstat (limited to 'libappstream-glib/as-image.c')
-rw-r--r--libappstream-glib/as-image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libappstream-glib/as-image.c b/libappstream-glib/as-image.c
index bfc8636..d8e4880 100644
--- a/libappstream-glib/as-image.c
+++ b/libappstream-glib/as-image.c
@@ -641,7 +641,7 @@ as_image_save_filename (AsImage *image,
AsImageSaveFlags flags,
GError **error)
{
- _cleanup_object_unref_ GdkPixbuf *pixbuf;
+ _cleanup_object_unref_ GdkPixbuf *pixbuf = NULL;
/* save source file */
pixbuf = as_image_save_pixbuf (image, width, height, flags);