aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_thread.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-04 19:51:54 +0100
committerMax Kellermann <max@duempel.org>2009-01-04 19:51:54 +0100
commit5e6ac50583bfe08aaf982eeb4373ff839eabc85e (patch)
treee58f5fb59ea60c001e1b6e10a12c6968d34e6593 /src/player_thread.c
parent530f0b71de6d0e44911528eb4e256d165ed77c31 (diff)
downloadmpd-5e6ac50583bfe08aaf982eeb4373ff839eabc85e.tar.gz
mpd-5e6ac50583bfe08aaf982eeb4373ff839eabc85e.tar.xz
mpd-5e6ac50583bfe08aaf982eeb4373ff839eabc85e.zip
initialize GError pointers
GLib mandates that you initialize all GError objects with NULL prior to passing it.
Diffstat (limited to 'src/player_thread.c')
-rw-r--r--src/player_thread.c2
1 files changed, 1 insertions, 1 deletions
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)))