aboutsummaryrefslogtreecommitdiffstats
path: root/epan/prefs.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/prefs.c')
-rw-r--r--epan/prefs.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/epan/prefs.c b/epan/prefs.c
index 38eca978e6..bc39fb177f 100644
--- a/epan/prefs.c
+++ b/epan/prefs.c
@@ -600,13 +600,10 @@ prefs_register_range_preference(module_t *module, const char *name,
* have them be empty ranges) and freeable (as we free them
* if we change them).
*
- * If the value is a null pointer, make it an empty range,
- * otherwise make it a copy of the value.
+ * If the value is a null pointer, make it an empty range.
*/
if (*var == NULL)
*var = range_empty();
- else
- *var = range_copy(*var);
preference->varp.range = var;
preference->saved_val.range = NULL;
}