aboutsummaryrefslogtreecommitdiffstats
path: root/src/redshift.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/redshift.c')
-rw-r--r--src/redshift.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/redshift.c b/src/redshift.c
index 8a83c4f..defd0a1 100644
--- a/src/redshift.c
+++ b/src/redshift.c
@@ -1092,7 +1092,7 @@ main(int argc, char *argv[])
&scheme.night.brightness);
break;
case 'c':
- if (config_filepath != NULL) free(config_filepath);
+ free(config_filepath);
config_filepath = strdup(optarg);
break;
case 'g':
@@ -1241,7 +1241,7 @@ main(int argc, char *argv[])
exit(EXIT_FAILURE);
}
- if (config_filepath != NULL) free(config_filepath);
+ free(config_filepath);
/* Read global config settings. */
config_ini_section_t *section = config_ini_get_section(&config_state,