init the GError to NULL
authorDana Jansens <danakj@orodu.net>
Thu, 20 Mar 2003 01:55:25 +0000 (01:55 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 20 Mar 2003 01:55:25 +0000 (01:55 +0000)
openbox/action.c

index f3ee6be..b05e345 100644 (file)
@@ -30,7 +30,7 @@ void action_free(Action *a)
 
 void action_execute(union ActionData *data)
 {
-    GError *e;
+    GError *e = NULL;
     if (!g_spawn_command_line_async(data->execute.path, &e)) {
         g_warning("failed to execute '%s': %s",
                   data->execute.path, e->message);