summaryrefslogtreecommitdiff
path: root/src/add-pronunciation.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/add-pronunciation.c
parent46083b1e7deaf5a323a86f94bf64924f63b59d9b (diff)
downloadtdv-5225c6117bbcf61ec3be128f0eef81dc00afa08f.tar.gz
tdv-5225c6117bbcf61ec3be128f0eef81dc00afa08f.tar.xz
tdv-5225c6117bbcf61ec3be128f0eef81dc00afa08f.zip
Initialise GError's
Diffstat (limited to 'src/add-pronunciation.c')
-rw-r--r--src/add-pronunciation.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/add-pronunciation.c b/src/add-pronunciation.c
index 2abf8e6..aaa9e08 100644
--- a/src/add-pronunciation.c
+++ b/src/add-pronunciation.c
@@ -103,7 +103,7 @@ writer_acronym_cb (const GMatchInfo *info, GString *res,
static gpointer
worker_writer (WorkerData *data)
{
- GError *error;
+ GError *error = NULL;
GMatchInfo *match_info;
while (stardict_iterator_get_offset (data->iterator) != data->end_entry)
{
@@ -167,7 +167,7 @@ get_void_entry (gchar *cmdline[])
gchar *output;
gint exit_status;
- GError *error;
+ GError *error = NULL;
if (!g_spawn_sync (NULL, cmdline, NULL,
G_SPAWN_SEARCH_PATH | G_SPAWN_STDERR_TO_DEV_NULL, NULL, NULL,
&output, NULL, &exit_status, &error))
@@ -190,7 +190,7 @@ static gpointer
worker (WorkerData *data)
{
/* Spawn eSpeak */
- GError *error;
+ GError *error = NULL;
gint child_in, child_out;
if (!g_spawn_async_with_pipes (NULL, data->cmdline, NULL,
G_SPAWN_SEARCH_PATH, NULL, NULL,