Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add missing : to getopt string for -p which takes a parameter.
Print an error rather than trying to strdup(NULL) if the parameter
is not specified.

Signed-off-by: Stuart Henderson <sthen@openbsd.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
sthen authored and David Woodhouse committed Aug 31, 2012
1 parent ef24da6 commit 8e16a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Expand Up @@ -338,7 +338,7 @@ static int next_option(int argc, char **argv, char **config_arg)
next:
if (!config_file) {
opt = getopt_long(argc, argv,
"bC:c:e:Ddg:hi:k:lpP:Q:qSs:U:u:Vvx:",
"bC:c:e:Ddg:hi:k:lp:P:Q:qSs:U:u:Vvx:",
long_options, NULL);

*config_arg = optarg;
Expand Down

0 comments on commit 8e16a75

Please sign in to comment.