Merge pull request #51 from dajohi/warning

Fix crash due to missing argument
This commit is contained in:
Henrik Andersson 2016-08-22 08:31:16 +02:00 committed by GitHub
commit 188a569fbd

View File

@ -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;
} }