[master] init, fixes a bug in getSyslog() causing a SEGV

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

 



The error could be triggered, e.g. by appending 'stage2=hd:label="fedora"' to the boot line.
---
 loader/init.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/loader/init.c b/loader/init.c
index 0d3db00..68a9ea9 100644
--- a/loader/init.c
+++ b/loader/init.c
@@ -336,7 +336,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.6.2.5

_______________________________________________
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