Root/
| 1 | --- a/cfgfile.c |
| 2 | +++ b/cfgfile.c |
| 3 | @@ -45,9 +45,9 @@ stringmap config; |
| 4 | extern options_t options ; |
| 5 | |
| 6 | int is_cfgdirective_valid(const char *s) { |
| 7 | - char **t; |
| 8 | - for (t = config_directives; *t != NULL; ++t) |
| 9 | - if (strcmp(s, *t) == 0) return 1; |
| 10 | + int t; |
| 11 | + for (t = 0; config_directives[t] != NULL; t++) |
| 12 | + if (strcmp(s, config_directives[t]) == 0) return 1; |
| 13 | return 0; |
| 14 | } |
| 15 | |
| 16 |
