]> git.ozlabs.org Git - yaboot.git/commitdiff
Fix incorrect comparision in get_params
authorAnton Blanchard <anton@samba.org>
Sat, 10 Apr 2010 18:06:57 +0000 (18:06 +0000)
committerTony Breeds <tony@bakeyournoodle.com>
Fri, 16 Jul 2010 05:39:08 +0000 (15:39 +1000)
We were comparing the first character of manualinitrd with a string. Not sure
how this ever worked.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
second/yaboot.c

index edb11c19dd02e981000a899467aedf000d3a56d3..5c8c8ea2310344d081b97473d2c19d64b65c48bd 100644 (file)
@@ -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