fix issue with no member error

This commit is contained in:
Liam Waldron 2025-03-19 21:00:10 -04:00
parent f3a8a9a728
commit 3833b18ec4

View File

@ -21,13 +21,13 @@ typedef struct {
static inline
int evconf_parse_config(const char *filename, ev_config *config)
{
FILE *config = fopen(filename, "r");
if (! config) {
FILE *file = fopen(filename, "r");
if (! file) {
return 1;
}
char line[MAX_LINE];
while (fgets(line, sizeof(line), config)) {
while (fgets(line, sizeof(line), file)) {
if (line[0] == "#" || line[0] == '\n') {
continue;
}
@ -51,7 +51,7 @@ int evconf_parse_config(const char *filename, ev_config *config)
}
}
fclose(config);
fclose(file);
}
static inline const