diff options
Diffstat (limited to 'capchild/capture_ifinfo.c')
-rw-r--r-- | capchild/capture_ifinfo.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/capchild/capture_ifinfo.c b/capchild/capture_ifinfo.c index 984fa664fe..94af1c0274 100644 --- a/capchild/capture_ifinfo.c +++ b/capchild/capture_ifinfo.c @@ -189,11 +189,8 @@ capture_interface_list(int *err, char **err_str, void (*update_cb)(void)) g_strfreev(raw_list); /* Check to see if we built a list */ - if (if_list == NULL) { + if (if_list == NULL) *err = NO_INTERFACES_FOUND; - if (err_str) - *err_str = g_strdup("No interfaces found"); - } #ifdef HAVE_PCAP_REMOTE if (remote_interface_list && g_list_length(remote_interface_list) > 0) { append_remote_list(if_list); |