diff options
author | Michael Tüxen <tuexen@fh-muenster.de> | 2011-06-30 06:31:52 +0000 |
---|---|---|
committer | Michael Tüxen <tuexen@fh-muenster.de> | 2011-06-30 06:31:52 +0000 |
commit | 185305aea62e4729dab2720c502fef8a0f41b7eb (patch) | |
tree | 7980f1ab01d04e2aca098b6ab105e108e77b9662 /capture_opts.c | |
parent | 0eb0b8f1f364a69f0fb3d41998fa57209df4fbab (diff) |
Cleanup.
svn path=/trunk/; revision=37840
Diffstat (limited to 'capture_opts.c')
-rw-r--r-- | capture_opts.c | 6 |
1 files changed, 1 insertions, 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; |