extcap: check that argument parameter is not null before adding it to command line

Without this test, we add an argument with an empty parameter

Bug: 14006
Change-Id: I7e5313f652691808735f54b533cf5a7f7adeeae1
Reviewed-on: https://code.wireshark.org/review/23271
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
This commit is contained in:
Pascal Quantin 2017-08-28 21:36:37 +02:00 committed by Dario Lombardo
parent 7a71ec887c
commit fa8a6a3eee
1 changed files with 1 additions and 1 deletions

View File

@ -1316,7 +1316,7 @@ GPtrArray *extcap_prepare_arguments(interface_options *interface_opts)
}
else
{
if (stored) {
if (stored && strlen(stored) > 0) {
add_arg(arg_iter->call);
add_arg(stored);
}