summaryrefslogtreecommitdiff
path: root/libappstream-builder/asb-app.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-builder/asb-app.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-builder/asb-app.c')
-rw-r--r--libappstream-builder/asb-app.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libappstream-builder/asb-app.c b/libappstream-builder/asb-app.c
index aed370c..5494bb8 100644
--- a/libappstream-builder/asb-app.c
+++ b/libappstream-builder/asb-app.c
@@ -181,7 +181,7 @@ asb_app_save_resources_image (AsbApp *app,
const gchar *output_dir;
gboolean ret = TRUE;
_cleanup_free_ gchar *filename = NULL;
- _cleanup_free_ gchar *size_str;
+ _cleanup_free_ gchar *size_str = NULL;
/* treat source images differently */
if (as_image_get_kind (image) == AS_IMAGE_KIND_SOURCE) {
@@ -402,7 +402,7 @@ asb_app_add_screenshot_source (AsbApp *app, const gchar *filename, GError **erro
_cleanup_free_ gchar *basename = NULL;
_cleanup_free_ gchar *filename_no_path = NULL;
_cleanup_free_ gchar *url_src = NULL;
- _cleanup_object_unref_ AsImage *im_src;
+ _cleanup_object_unref_ AsImage *im_src = NULL;
_cleanup_object_unref_ AsScreenshot *ss = NULL;
guint sizes[] = { AS_IMAGE_NORMAL_WIDTH, AS_IMAGE_NORMAL_HEIGHT,
AS_IMAGE_THUMBNAIL_WIDTH, AS_IMAGE_THUMBNAIL_HEIGHT,