Merge pull request #51 from dajohi/warning
Fix crash due to missing argument
This commit is contained in:
commit
188a569fbd
@ -936,7 +936,7 @@ main(int argc, char *argv[])
|
|||||||
char *p = strchr(optarg, '=');
|
char *p = strchr(optarg, '=');
|
||||||
if (p == NULL)
|
if (p == NULL)
|
||||||
{
|
{
|
||||||
warning("Skipping option '%s' specified, lacks name=value format.\n");
|
warning("Skipping option '%s' specified, lacks name=value format.\n", optarg);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user