[syslinux:master] installer: fix 0 used as NULL
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Fri Jan 17 16:57:06 PST 2014
Commit-ID: 607617d7ff7ead7f8ff42c5f7598d7a240842811
Gitweb: http://www.syslinux.org/commit/607617d7ff7ead7f8ff42c5f7598d7a240842811
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Fri, 17 Jan 2014 16:56:11 -0800
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Fri, 17 Jan 2014 16:56:11 -0800
installer: fix 0 used as NULL
0 used as NULL triggers a warning.
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
libinstaller/syslxopt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libinstaller/syslxopt.c b/libinstaller/syslxopt.c
index a73cd10..3fc5519 100644
--- a/libinstaller/syslxopt.c
+++ b/libinstaller/syslxopt.c
@@ -67,7 +67,7 @@ const struct option long_options[] = {
{"mbr", 0, NULL, 'm'}, /* DOS/Win32 only */
{"active", 0, NULL, 'a'}, /* DOS/Win32 only */
{"device", 1, NULL, OPT_DEVICE},
- {0, 0, 0, 0}
+ {NULL, 0, NULL, 0}
};
const char short_options[] = "t:fid:UuzsS:H:rvho:OM:ma";
More information about the Syslinux-commits
mailing list