aboutsummaryrefslogtreecommitdiffstats
path: root/src/location-geoclue.c
diff options
context:
space:
mode:
authorJon Lund Steffensen <jonlst@gmail.com>2015-05-10 19:43:05 -0400
committerJon Lund Steffensen <jonlst@gmail.com>2015-05-10 19:43:05 -0400
commit6c51f4f7b07fdefd5c69f6d7c96dc2f618f15189 (patch)
tree524c0a993e4273bdab59cb786526b62581dfb4db /src/location-geoclue.c
parentFix #174: Use nanosleep() instead of usleep() (diff)
parentremove unnecessary null-checks, it is safe to pass NULL to free (per documentation) (diff)
downloadredshift-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.c4
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