diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2015-05-10 19:43:05 -0400 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2015-05-10 19:43:05 -0400 |
commit | 6c51f4f7b07fdefd5c69f6d7c96dc2f618f15189 (patch) | |
tree | 524c0a993e4273bdab59cb786526b62581dfb4db /src/location-geoclue.c | |
parent | Fix #174: Use nanosleep() instead of usleep() (diff) | |
parent | remove unnecessary null-checks, it is safe to pass NULL to free (per documentation) (diff) | |
download | redshift-ng-6c51f4f7b07fdefd5c69f6d7c96dc2f618f15189.tar.gz redshift-ng-6c51f4f7b07fdefd5c69f6d7c96dc2f618f15189.tar.bz2 redshift-ng-6c51f4f7b07fdefd5c69f6d7c96dc2f618f15189.tar.xz |
Merge pull request #214 from maandree/null-checks
Remove unnecessary null-checks
Diffstat (limited to 'src/location-geoclue.c')
-rw-r--r-- | src/location-geoclue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/location-geoclue.c b/src/location-geoclue.c index b2616bf..851a75b 100644 --- a/src/location-geoclue.c +++ b/src/location-geoclue.c @@ -123,8 +123,8 @@ void location_geoclue_free(location_geoclue_state_t *state) { if (state->position != NULL) g_object_unref(state->position); - if (state->provider != NULL) free(state->provider); - if (state->provider_path != NULL) free(state->provider_path); + free(state->provider); + free(state->provider_path); } void |