aboutsummaryrefslogtreecommitdiffstats
path: root/extcap.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2018-11-02 14:07:30 +0100
committerRoland Knall <rknall@gmail.com>2018-11-02 15:17:58 +0000
commit89d74238d9132488cd8858b7a1caeacb0734e5c9 (patch)
tree8614388b2026767df5d76028f797fe9d19eba67a /extcap.c
parentfc17bfc4f13f09d58c0c7dbf9b116f30ae9c4c50 (diff)
extcap: use the correct values for comparing.
Change-Id: Ieb9c0940065aeff1234998aaec37f05fb7f80ed9 Reviewed-on: https://code.wireshark.org/review/30484 Petri-Dish: Dario Lombardo <lomato@gmail.com> Reviewed-by: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'extcap.c')
-rw-r--r--extcap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extcap.c b/extcap.c
index b8a1fd7d2a..4c8c748885 100644
--- a/extcap.c
+++ b/extcap.c
@@ -1145,7 +1145,7 @@ void extcap_if_cleanup(capture_options *capture_opts, gchar **errormsg)
#ifndef _WIN32
/* Final child watch may not have been called */
- if (interface_opts->extcap_child_watch != 0)
+ if (interface_opts->extcap_child_watch > 0)
{
extcap_child_watch_cb(pipedata->pid, 0, capture_opts);
/* it will have changed in extcap_child_watch_cb */
@@ -1161,7 +1161,7 @@ void extcap_if_cleanup(capture_options *capture_opts, gchar **errormsg)
if (overwrite_exitcode || pipedata->exitcode != 0)
{
- if (pipedata->stderr_msg != 0)
+ if (pipedata->stderr_msg != NULL)
{
if (*errormsg == NULL)
{