libsmbios/libsmbios-fix-compiler_warning_cgcc.diff

12 lines
470 B
Diff

--- bin-supported/getopts.c 2008-01-08 18:57:17.000000000 +0100
+++ bin-supported/getopts.c 2008-01-08 18:57:46.000000000 +0100
@@ -55,7 +55,7 @@
printf(" --help,\t-h\t\t\tDisplays this information\n");
for (count = 0; opts[count].description; count++)
{
- char *cmd = 0;
+ char *cmd = NULL;
if (opts[count].name && opts[count].shortName)
{
cmd = calloc(1, strlen(opts[count].name) + strlen(opts[count].shortName) + 15);