search for: 3a51f7e

Displaying 2 results from an estimated 2 matches for "3a51f7e".

Did you mean: 3a517
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.dire...
2010 Jun 19
1
[PATCH 1/2] linux/syslinux.c: Silence warnings
...ret; - asprintf(&file, "%s%s%s", + ret = asprintf(&file, "%s%s%s", path, path[0] && path[strlen(path) - 1] == '/' ? "" : "/", cfg); if (!file) { diff --git a/linux/syslinux.c b/linux/syslinux.c index 888df3d..3a51f7e 100644 --- a/linux/syslinux.c +++ b/linux/syslinux.c @@ -276,12 +276,13 @@ int main(int argc, char *argv[]) int mnt_cookie; int patch_sectors; int i; + int ret; mypid = getpid(); umask(077); parse_options(argc, argv, MODE_SYSLINUX); - asprintf(&subdir, &quo...