diff options
author | Rob Landley <rob@landley.net> | 2006-06-08 14:19:48 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-06-08 14:19:48 +0000 |
commit | 176f2df69b70ad53d4e2f893d9d8fe1c254e405d (patch) | |
tree | fcd3eb6f1a6ae89b52e69e404741aac1c1aec83d | |
parent | 9c6f9552ec99b200f203943076778345b0946fb2 (diff) | |
download | busybox-w32-176f2df69b70ad53d4e2f893d9d8fe1c254e405d.tar.gz busybox-w32-176f2df69b70ad53d4e2f893d9d8fe1c254e405d.tar.bz2 busybox-w32-176f2df69b70ad53d4e2f893d9d8fe1c254e405d.zip |
Patch from Erik Hovland, via Tito.
-rw-r--r-- | miscutils/devfsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c index aa682dc0d..b2912a89e 100644 --- a/miscutils/devfsd.c +++ b/miscutils/devfsd.c | |||
@@ -1311,9 +1311,9 @@ static const char *get_variable (const char *variable, void *info) | |||
1311 | /* compare_string_array returns i>=0 */ | 1311 | /* compare_string_array returns i>=0 */ |
1312 | i=compare_string_array(field_names, variable); | 1312 | i=compare_string_array(field_names, variable); |
1313 | 1313 | ||
1314 | if ( i > 6 && (i > 1 && gv_info == NULL)) | 1314 | if ( i > 6 || i < 0 || (i > 1 && gv_info == NULL)) |
1315 | return (NULL); | 1315 | return (NULL); |
1316 | if( i >= 0 || i <= 3) | 1316 | if( i >= 0 && i <= 3) |
1317 | { | 1317 | { |
1318 | debug_msg_logger(LOG_INFO, "%s: i=%d %s", __FUNCTION__, i ,field_names[i+7]); | 1318 | debug_msg_logger(LOG_INFO, "%s: i=%d %s", __FUNCTION__, i ,field_names[i+7]); |
1319 | return(field_names[i+7]); | 1319 | return(field_names[i+7]); |