aboutsummaryrefslogtreecommitdiffstats
path: root/src/config-ini.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-03-05 20:59:57 +0100
committerMattias Andrée <m@maandree.se>2025-03-05 20:59:57 +0100
commit259604f63dba5f958b879813d1eaed9a59991d1e (patch)
tree15aec3fced6f925fb3dd9d6c5907cf5aaa2a22d0 /src/config-ini.c
parentMention after fork that SIGCHLD is ignored (diff)
downloadredshift-ng-259604f63dba5f958b879813d1eaed9a59991d1e.tar.gz
redshift-ng-259604f63dba5f958b879813d1eaed9a59991d1e.tar.bz2
redshift-ng-259604f63dba5f958b879813d1eaed9a59991d1e.tar.xz
Fix warnings
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'src/config-ini.c')
-rw-r--r--src/config-ini.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/config-ini.c b/src/config-ini.c
index 24027d4..4cac7e2 100644
--- a/src/config-ini.c
+++ b/src/config-ini.c
@@ -37,7 +37,6 @@ open_config_file(const char *filepath)
*/
if (filepath == NULL) {
- FILE *f = NULL;
char cp[MAX_CONFIG_PATH];
char *env;
@@ -138,8 +137,6 @@ open_config_file(const char *filepath)
f = fopen(cp, "r");
}
#endif
-
- return f;
} else {
f = fopen(filepath, "r");
if (f == NULL) {