From 3833b18ec4f317cd71862e0b1291af0c233ee2e8 Mon Sep 17 00:00:00 2001 From: Liam Waldron Date: Wed, 19 Mar 2025 21:00:10 -0400 Subject: [PATCH] fix issue with no member error --- include/libevconf.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/libevconf.h b/include/libevconf.h index 285158b..b97fcd2 100644 --- a/include/libevconf.h +++ b/include/libevconf.h @@ -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