summaryrefslogtreecommitdiffstats
path: root/isys/silo.c
diff options
context:
space:
mode:
authorjakub <jakub>1999-10-07 16:36:08 +0000
committerjakub <jakub>1999-10-07 16:36:08 +0000
commita79cc686d043b9eddac07e88a1818d7f98dbd244 (patch)
treeb046502e115aa6813ed757342020eeded7f74baf /isys/silo.c
parent13fd7ad8c287cecfa2eed60443fb2f84b0d8494e (diff)
downloadanaconda-a79cc686d043b9eddac07e88a1818d7f98dbd244.tar.gz
anaconda-a79cc686d043b9eddac07e88a1818d7f98dbd244.tar.xz
anaconda-a79cc686d043b9eddac07e88a1818d7f98dbd244.zip
Brown paper bag bugfix.
Diffstat (limited to 'isys/silo.c')
-rw-r--r--isys/silo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/isys/silo.c b/isys/silo.c
index 4239f4ba9..888de808d 100644
--- a/isys/silo.c
+++ b/isys/silo.c
@@ -615,7 +615,7 @@ void set_prom_vars(char *linuxAlias, char *bootDevice) {
memcpy (nvramrc, p, len);
nvramrc [len] = 0;
q = nvramrc;
- while (q) {
+ for (;;) {
/* If there is already `devalias linux /some/ugly/prom/path'
make sure we fully understand that and remove it. */
if (!strncmp (q, "devalias", 8) && (q[8] == ' ' || q[8] == '\t')) {
@@ -632,6 +632,8 @@ void set_prom_vars(char *linuxAlias, char *bootDevice) {
}
}
q = strchr (q, '\n');
+ if (!q) break;
+ q++;
}
len = strlen (nvramrc);
if (len && nvramrc [len-1] != '\n')