Displaying 1 result from an estimated 1 matches for "2fd562e".
Did you mean:
2f45672e
2010 Jun 19
1
[PATCH 2/2] linux/syslinux.c: Test if null
From: Gene Cumm <gene.cumm at gmail.com>
linux/syslinux.c: Test if opt.directory is null before testing first character.
Signed-off-by: Gene Cumm <gene.cumm at gmail.com>
---
diff --git a/linux/syslinux.c b/linux/syslinux.c
index 3a51f7e..2fd562e 100644
--- a/linux/syslinux.c
+++ b/linux/syslinux.c
@@ -283,7 +283,8 @@ int main(int argc, char *argv[])
parse_options(argc, argv, MODE_SYSLINUX);
ret = asprintf(&subdir, "%s%s",
- opt.directory[0] == '/' ? "" : "/", opt.directory);
+...