diff options
author | Richard Hughes <richard@hughsie.com> | 2014-11-04 16:30:23 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-11-04 16:30:24 +0000 |
commit | caa4d69ddbc4a3fd4a570ac73b64ac36a34b4a02 (patch) | |
tree | 3ca7f5f7c251c78ccdb593cd25bec135569bd554 /libappstream-builder/asb-utils.c | |
parent | 3b5399778818cc45ddefd9138a02b5ba2626a1d9 (diff) | |
download | appstream-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-utils.c')
-rw-r--r-- | libappstream-builder/asb-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libappstream-builder/asb-utils.c b/libappstream-builder/asb-utils.c index 6d2fbb6..8fb1078 100644 --- a/libappstream-builder/asb-utils.c +++ b/libappstream-builder/asb-utils.c @@ -157,7 +157,7 @@ asb_utils_ensure_exists_and_empty (const gchar *directory, GError **error) /* find each */ while ((filename = g_dir_read_name (dir))) { - _cleanup_free_ gchar *src; + _cleanup_free_ gchar *src = NULL; src = g_build_filename (directory, filename, NULL); if (g_file_test (src, G_FILE_TEST_IS_DIR)) { if (!asb_utils_rmtree (src, error)) |