fix a little bug in '-o none' command line parsing
This commit is contained in:
parent
80a53ef3f9
commit
2b5d3a89f2
|
|
@ -144,6 +144,9 @@ void parse_cmdline(int argc, char *argv[])
|
||||||
case 'o':
|
case 'o':
|
||||||
i = pick_loglevel(optarg, log_destnames);
|
i = pick_loglevel(optarg, log_destnames);
|
||||||
if (i > -1)
|
if (i > -1)
|
||||||
|
if (i == 0)
|
||||||
|
log_dest = 0;
|
||||||
|
else
|
||||||
log_dest = 1 << (i-1);
|
log_dest = 1 << (i-1);
|
||||||
else {
|
else {
|
||||||
fprintf(stderr, "Log destination unknown: \"%s\"\n", optarg);
|
fprintf(stderr, "Log destination unknown: \"%s\"\n", optarg);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue