aboutsummaryrefslogtreecommitdiffstats
path: root/epan/prefs.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-10-17 00:51:50 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-10-17 00:51:50 +0000
commit604f6a4c14c963e42ccd7cfe519434515bf63c27 (patch)
tree7929c0843cffd7821cb5c3a41837f4d625446948 /epan/prefs.c
parenta41d4f9455dd4fb6a25cb59539e5620b5d75aa96 (diff)
"ssn_range" needs to be a copy of "global_ssn_range", so that it's not
freed if "global_ssn_range" is changed because the preference was changed. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12322 f5534014-38df-0310-8fa8-9805f1628bb7
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;
}