mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-26 01:37:04 +00:00
config lookup conditional was wrong
This commit is contained in:
@@ -145,7 +145,7 @@ onlp_config_lookup(const char* setting)
|
||||
{
|
||||
int i;
|
||||
for(i = 0; onlp_config_settings[i].name; i++) {
|
||||
if(strcmp(onlp_config_settings[i].name, setting)) {
|
||||
if(!strcmp(onlp_config_settings[i].name, setting)) {
|
||||
return onlp_config_settings[i].value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user