initialize GError pointers

GLib mandates that you initialize all GError objects with NULL prior
to passing it.
This commit is contained in:
Max Kellermann
2009-01-04 19:51:54 +01:00
parent 530f0b71de
commit 5e6ac50583
4 changed files with 4 additions and 4 deletions

View File

@@ -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)))