From 185305aea62e4729dab2720c502fef8a0f41b7eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20T=C3=BCxen?= Date: Thu, 30 Jun 2011 06:31:52 +0000 Subject: Cleanup. svn path=/trunk/; revision=37840 --- capture_opts.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/capture_opts.c b/capture_opts.c index badd00381d..3412a96f11 100644 --- a/capture_opts.c +++ b/capture_opts.c @@ -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; -- cgit v1.2.3