From 5225c6117bbcf61ec3be128f0eef81dc00afa08f Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sun, 19 May 2013 05:04:47 +0200 Subject: Initialise GError's --- src/test-stardict.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test-stardict.c') diff --git a/src/test-stardict.c b/src/test-stardict.c index a7849c0..f6a8354 100644 --- a/src/test-stardict.c +++ b/src/test-stardict.c @@ -178,7 +178,7 @@ generate_dictionary_data (gsize length) static Dictionary * dictionary_create (void) { - GError *error; + GError *error = NULL; gchar *tmp_dir_path = g_dir_make_tmp ("stardict-test-XXXXXX", &error); if (!tmp_dir_path) g_error ("Failed to create a directory for the test dictionary: %s", @@ -234,7 +234,7 @@ dictionary_create (void) static void dictionary_destroy (Dictionary *dict) { - GError *error; + GError *error = NULL; if (!remove_recursive (dict->tmp_dir, &error)) g_error ("Failed to delete the temporary directory: %s", error->message); -- cgit v1.2.3-70-g09d2