[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 2/2] Fixed uninitialized GError* variable (#681511)



---
 loader/init.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/loader/init.c b/loader/init.c
index b9d401f..361bb04 100644
--- a/loader/init.c
+++ b/loader/init.c
@@ -337,7 +337,7 @@ static void getSyslog(char *addr) {
     int i;
     int argc;
     char** argv;
-    GError* err;
+    GError* err = NULL;
     if (!g_shell_parse_argv(buf, &argc, &argv, &err )) {
         g_error_free(err);
         return;
-- 
1.7.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]