diff options
Diffstat (limited to 'src/redshift.c')
-rw-r--r-- | src/redshift.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/redshift.c b/src/redshift.c index 0fcb0ba..095e0db 100644 --- a/src/redshift.c +++ b/src/redshift.c @@ -1096,7 +1096,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': @@ -1245,7 +1245,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, |