Remove superfluous null-checks before strdup/free
[metze/wireshark/wip.git] / ui / cli / tap-sipstat.c
index c1902f1060fe03360645e74a2339bf735b7f1f5e..75859c13c5540b1636241a828b496e27a93335ba 100644 (file)
@@ -422,11 +422,7 @@ sipstat_init(const char *opt_arg, void *userdata _U_)
        }
 
        sp = g_new0(sipstat_t, 1);
-       if (filter) {
-               sp->filter = g_strdup(filter);
-       } else {
-               sp->filter = NULL;
-       }
+       sp->filter = g_strdup(filter);
        /*g_hash_table_foreach( sip_status, (GHFunc)sip_reset_hash_responses, NULL);*/