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:
Guy Harris 2014-07-10 17:42:37 -07:00
parent b5d4128bee
commit 2585e6cb09
1 changed files with 13 additions and 5 deletions

View File

@ -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: