diff options
author | Vincent Sanders <vince@kyllikki.org> | 2016-08-06 10:27:32 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2016-08-06 10:27:32 +0100 |
commit | c0f4bbb3083b56bf4f1e089a40ab059233b88495 (patch) | |
tree | 744ffbe8561c00bff877e1b260e400a72842fdf4 /utils | |
parent | 40ae120360a956daa6e29260d0a4f584632f212d (diff) | |
download | netsurf-c0f4bbb3083b56bf4f1e089a40ab059233b88495.tar.gz netsurf-c0f4bbb3083b56bf4f1e089a40ab059233b88495.tar.bz2 |
remove erroneous parameter check to nsoption_snoptionf
The API check and bounds check for option indexes was from an unsigned
enum so checking for negative numbers was causing "comparison is always
false" errors in compilation.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/nsoption.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/nsoption.c b/utils/nsoption.c index 6754d2131..92ecfc176 100644 --- a/utils/nsoption.c +++ b/utils/nsoption.c @@ -826,7 +826,7 @@ nsoption_snoptionf(char *string, return -1; } - if ((option_idx < 0) || (option_idx >= NSOPTION_LISTEND)) { + if (option_idx >= NSOPTION_LISTEND) { return -1; } |