aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-10-17 00:51:50 +0000
committerGuy Harris <guy@alum.mit.edu>2004-10-17 00:51:50 +0000
commit01f041efc2587b3d88d163d34792e6c623b17078 (patch)
tree7929c0843cffd7821cb5c3a41837f4d625446948
parent6d53294988593019dd24bef27f60ac82924a1354 (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. svn path=/trunk/; revision=12322
-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;
}