diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-07-26 21:42:28 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-07-26 21:43:24 +0000 |
commit | 99242affde4b51cd62f4b6a822fa7f5941e1c3f7 (patch) | |
tree | b33322681b90ccd8991093d43d0e7ea56f73b13e /extcap.c | |
parent | 137d45f52c6ff3deb56721a6e37be5c4ed8f095a (diff) |
Revert "Pass all arguments to options as --option=argument."
This reverts commit 137d45f52c6ff3deb56721a6e37be5c4ed8f095a.
Don't. Make. The. Argument. To. Your. Extcap. Program. Specific.
Options. Optional. (Unless they're Boolean, in which case we never
pass an argument - we just pass the option if it's true and don't
pass it if it's false.)
Change-Id: I11e4ecaa196fd94c493d51e1f73e90267e1d9b1d
Reviewed-on: https://code.wireshark.org/review/28866
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'extcap.c')
-rw-r--r-- | extcap.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1355,11 +1355,8 @@ GPtrArray *extcap_prepare_arguments(interface_options *interface_opts) else { if (stored && strlen(stored) > 0) { - char *argstring; - - argstring = g_strdup_printf("%s=%s", arg_iter->call, stored); - add_arg(argstring); - g_free(argstring); + add_arg(arg_iter->call); + add_arg(stored); } } |