]> git.samba.org - metze/wireshark/wip.git/commitdiff
Cleanup.
authorMichael Tüxen <tuexen@fh-muenster.de>
Thu, 30 Jun 2011 06:31:52 +0000 (06:31 -0000)
committerMichael Tüxen <tuexen@fh-muenster.de>
Thu, 30 Jun 2011 06:31:52 +0000 (06:31 -0000)
svn path=/trunk/; revision=37840

capture_opts.c

index badd00381d2a99fe97b82de1ebec4fe93a1a6dad..3412a96f119039ac3a58f133c5722370d430fa78 100644 (file)
@@ -495,11 +495,7 @@ capture_opts_add_iface_opt(capture_options *capture_opts, const char *optarg_str
     } else {
         interface_opts.name = g_strdup(optarg_str_p);
     }
-    if (capture_opts->default_options.descr) {
-        interface_opts.descr = g_strdup(capture_opts->default_options.descr);
-    } else {
-        interface_opts.descr = NULL;
-    }
+    interface_opts.descr = g_strdup(capture_opts->default_options.descr);
     interface_opts.cfilter = g_strdup(capture_opts->default_options.cfilter);
     interface_opts.snaplen = capture_opts->default_options.snaplen;
     interface_opts.has_snaplen = capture_opts->default_options.has_snaplen;