aboutsummaryrefslogtreecommitdiff
path: root/src/test-stardict.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2013-05-19 05:04:47 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2013-05-19 05:04:47 +0200
commit5225c6117bbcf61ec3be128f0eef81dc00afa08f (patch)
tree1f51a5b2e245b2ea91f488999365c08e2bf733ca /src/test-stardict.c
parent46083b1e7deaf5a323a86f94bf64924f63b59d9b (diff)
downloadtdv-5225c6117bbcf61ec3be128f0eef81dc00afa08f.tar.gz
tdv-5225c6117bbcf61ec3be128f0eef81dc00afa08f.tar.xz
tdv-5225c6117bbcf61ec3be128f0eef81dc00afa08f.zip
Initialise GError's
Diffstat (limited to 'src/test-stardict.c')
-rw-r--r--src/test-stardict.c4
1 files changed, 2 insertions, 2 deletions
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);