aboutsummaryrefslogtreecommitdiffstats
path: root/epan/prefs.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-07-10 17:42:37 -0700
committerGuy Harris <guy@alum.mit.edu>2014-07-11 00:43:15 +0000
commit2585e6cb09c11e54368e453b1c31042002e4db40 (patch)
tree89fa36eed15294e878313a4bc0d90b1dbd72c6bb /epan/prefs.c
parentb5d4128bee88b42cb32337a6343bb44574ff2f3a (diff)
Change comments to reflect current reality.
Change-Id: If4e220457d2040eaa35dd5e55a0f43fc9da5e347 Reviewed-on: https://code.wireshark.org/review/2991 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/prefs.c')
-rw-r--r--epan/prefs.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/epan/prefs.c b/epan/prefs.c
index 08aa428ef2..cac6dfd936 100644
--- a/epan/prefs.c
+++ b/epan/prefs.c
@@ -3329,7 +3329,12 @@ read_prefs_file(const char *pf_path, FILE *pf,
}
}
/* Call the routine to set the preference; it will parse
- the value as appropriate. */
+ the value as appropriate.
+
+ Since we're reading a file, rather than processing
+ explicit user input, for range preferences, silently
+ silently lower values in excess of the range's maximum,
+ rather than reporting errors and failing. */
switch (pref_set_pair_fct(cur_var->str, cur_val->str, private_data, FALSE)) {
case PREFS_SET_OK:
@@ -3408,10 +3413,13 @@ read_prefs_file(const char *pf_path, FILE *pf,
}
if (cur_var->len > 0) {
if (got_val) {
- /* Convert the string to a range. Since we're reading the
- * preferences file, silently lower values in excess of the
- * range's maximum.
- */
+ /* Call the routine to set the preference; it will parse
+ the value as appropriate.
+
+ Since we're reading a file, rather than processing
+ explicit user input, for range preferences, silently
+ silently lower values in excess of the range's maximum,
+ rather than reporting errors and failing. */
switch (pref_set_pair_fct(cur_var->str, cur_val->str, private_data, FALSE)) {
case PREFS_SET_OK: