[PATCH] Fixed uninitialized GError* variable

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

 



---
 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.3.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux