More robust searching for config keys.

This commit is contained in:
Bert Vermeulen 2014-10-27 16:58:33 +01:00
parent 51b1b95edb
commit a700a3a4bf
1 changed files with 2 additions and 0 deletions

View File

@ -562,6 +562,8 @@ SR_API const struct sr_config_info *sr_config_info_name_get(const char *optname)
int i;
for (i = 0; sr_config_info_data[i].key; i++) {
if (!sr_config_info_data[i].id)
continue;
if (!strcmp(sr_config_info_data[i].id, optname))
return &sr_config_info_data[i];
}