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>
This commit is contained in:
parent
b5d4128bee
commit
2585e6cb09
18
epan/prefs.c
18
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:
|
||||
|
|
Loading…
Reference in New Issue