[PATCH 10/10] Fix incorrect comparision in get_params
Anton Blanchard
anton at samba.org
Sun Apr 11 14:06:57 EST 2010
We were comparing the first character of manualinitrd with a string. Not sure
how this ever worked.
Signed-off-by: Anton Blanchard <anton at samba.org>
---
Index: yaboot/second/yaboot.c
===================================================================
--- yaboot.orig/second/yaboot.c 2010-04-11 12:05:09.000000000 +1000
+++ yaboot/second/yaboot.c 2010-04-11 12:06:28.000000000 +1000
@@ -981,7 +981,7 @@ int get_params(struct boot_param_t* para
/* check if user seted to use a initrd file from boot console */
if (!definitrd && p != manualinitrd) {
- if (manualinitrd[0] != "/" && (prom_get_devtype(defdevice_bak) != FILE_DEVICE_NET)) {
+ if (manualinitrd[0] != '/' && (prom_get_devtype(defdevice_bak) != FILE_DEVICE_NET)) {
strcpy(initrdpath, "/");
strcat(initrdpath, manualinitrd);
} else
More information about the Yaboot-devel
mailing list