projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c6f955
)
Patch from Erik Hovland, via Tito.
author
Rob Landley
<rob@landley.net>
Thu, 8 Jun 2006 14:19:48 +0000
(14:19 -0000)
committer
Rob Landley
<rob@landley.net>
Thu, 8 Jun 2006 14:19:48 +0000
(14:19 -0000)
miscutils/devfsd.c
patch
|
blob
|
history
diff --git
a/miscutils/devfsd.c
b/miscutils/devfsd.c
index aa682dc0dfbb7c7e5f51cf7d107806990c17956f..b2912a89e055223370dcf71609850706368bac95 100644
(file)
--- a/
miscutils/devfsd.c
+++ b/
miscutils/devfsd.c
@@
-1311,9
+1311,9
@@
static const char *get_variable (const char *variable, void *info)
/* compare_string_array returns i>=0 */
i=compare_string_array(field_names, variable);
- if ( i > 6
&&
(i > 1 && gv_info == NULL))
+ if ( i > 6
|| i < 0 ||
(i > 1 && gv_info == NULL))
return (NULL);
- if( i >= 0
||
i <= 3)
+ if( i >= 0
&&
i <= 3)
{
debug_msg_logger(LOG_INFO, "%s: i=%d %s", __FUNCTION__, i ,field_names[i+7]);
return(field_names[i+7]);