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>
/* 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