projects
/
sigrok-cli.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
491e882
)
cli: use new generic arg parser API
author
Bert Vermeulen
<bert@biot.com>
Fri, 3 Aug 2012 09:48:41 +0000
(11:48 +0200)
committer
Bert Vermeulen
<bert@biot.com>
Fri, 3 Aug 2012 09:48:41 +0000
(11:48 +0200)
sigrok-cli.c
patch
|
blob
|
history
diff --git
a/sigrok-cli.c
b/sigrok-cli.c
index f54828265508449f920cd7977610574e719724ed..38ea352cc842228f80d29884c245ae16d56a1b69 100644
(file)
--- a/
sigrok-cli.c
+++ b/
sigrok-cli.c
@@
-1143,7
+1143,7
@@
static void load_input_file_format(void)
char *fmtspec = NULL;
if (opt_input_format) {
- fmtargs = parse_generic_arg(opt_input_format);
+ fmtargs = parse_generic_arg(opt_input_format
, TRUE
);
fmtspec = g_hash_table_lookup(fmtargs, "sigrok_key");
}
@@
-1152,7
+1152,7
@@
static void load_input_file_format(void)
/* The exact cause was already logged. */
return;
}
-;
+
if (fmtargs)
g_hash_table_remove(fmtargs, "sigrok_key");