From 1bdc16516d7e67a30fa48a594f91aafff0c5eb46 Mon Sep 17 00:00:00 2001 From: Anton Blanchard Date: Sat, 10 Apr 2010 18:06:57 +0000 Subject: [PATCH] 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 --- second/yaboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2