aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/decoder_thread.c2
-rw-r--r--src/output_thread.c2
-rw-r--r--src/player_thread.c2
-rw-r--r--src/update.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/decoder_thread.c b/src/decoder_thread.c
index a856c1f00..2d2e50b39 100644
--- a/src/decoder_thread.c
+++ b/src/decoder_thread.c
@@ -253,7 +253,7 @@ static gpointer decoder_task(G_GNUC_UNUSED gpointer arg)
void decoder_thread_start(void)
{
- GError *e;
+ GError *e = NULL;
GThread *t;
if (!(t = g_thread_create(decoder_task, NULL, FALSE, &e)))
diff --git a/src/output_thread.c b/src/output_thread.c
index 316c4a719..63c443ddc 100644
--- a/src/output_thread.c
+++ b/src/output_thread.c
@@ -167,7 +167,7 @@ static gpointer audio_output_task(gpointer arg)
void audio_output_thread_start(struct audio_output *ao)
{
- GError *e;
+ GError *e = NULL;
assert(ao->command == AO_COMMAND_NONE);
diff --git a/src/player_thread.c b/src/player_thread.c
index 98cc64441..bdf36f43f 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -556,7 +556,7 @@ static gpointer player_task(G_GNUC_UNUSED gpointer arg)
void player_create(void)
{
- GError *e;
+ GError *e = NULL;
GThread *t;
if (!(t = g_thread_create(player_task, NULL, FALSE, &e)))
diff --git a/src/update.c b/src/update.c
index 7f5185ccb..ce342b88b 100644
--- a/src/update.c
+++ b/src/update.c
@@ -653,7 +653,7 @@ static void * update_task(void *_path)
static void spawn_update_task(char *path)
{
- GError *e;
+ GError *e = NULL;
assert(g_thread_self() == main_task);