summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
authorAles Kozumplik <akozumpl@redhat.com>2010-01-22 13:35:20 +0100
committerAles Kozumplik <akozumpl@redhat.com>2010-01-25 15:59:47 +0100
commitd58171a082e6a9ca9506efb80df489d4c55076db (patch)
tree56a47196d2c3708a101edc34f7c75099e1704092 /loader
parent198b371de9e6c69e1af3ff854c65e8e38d2f1b71 (diff)
downloadanaconda-d58171a082e6a9ca9506efb80df489d4c55076db.tar.gz
anaconda-d58171a082e6a9ca9506efb80df489d4c55076db.tar.xz
anaconda-d58171a082e6a9ca9506efb80df489d4c55076db.zip
init, fixes a bug in getSyslog() causing a SEGV
The error could be triggered, e.g. by appending 'stage2=hd:label="fedora"' to the boot line.
Diffstat (limited to 'loader')
-rw-r--r--loader/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loader/init.c b/loader/init.c
index 0d3db0037..68a9ea9f1 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;