003-debian_arm.patch 394 B

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