From: Anton Blanchard Date: Sat, 10 Apr 2010 18:06:57 +0000 (+0000) Subject: Fix incorrect comparision in get_params X-Git-Tag: yaboot-1.3.17-rc1~16 X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=commitdiff_plain;h=1bdc16516d7e67a30fa48a594f91aafff0c5eb46;hp=8db57acd6472487aa453ff74276c657c46925eac Fix incorrect comparision in get_params We were comparing the first character of manualinitrd with a string. Not sure how this ever worked. Signed-off-by: Anton Blanchard Signed-off-by: Tony Breeds --- diff --git a/second/yaboot.c b/second/yaboot.c index edb11c1..5c8c8ea 100644 --- a/second/yaboot.c +++ b/second/yaboot.c @@ -985,7 +985,7 @@ int get_params(struct boot_param_t* params) /* 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