aboutsummaryrefslogtreecommitdiffstats
path: root/src/location-geoclue.h
diff options
context:
space:
mode:
authorJon Lund Steffensen <jonlst@gmail.com>2013-12-09 11:07:47 -0500
committerJon Lund Steffensen <jonlst@gmail.com>2013-12-09 12:28:45 -0500
commite4034ba27de725e0fa9b6c4de8f32ca7ad0193a3 (patch)
treec550355d8a93ae92a7bd7847a3001218c616270d /src/location-geoclue.h
parentConstify gamma parameter to set_temperature() methods (diff)
downloadredshift-ng-e4034ba27de725e0fa9b6c4de8f32ca7ad0193a3.tar.gz
redshift-ng-e4034ba27de725e0fa9b6c4de8f32ca7ad0193a3.tar.bz2
redshift-ng-e4034ba27de725e0fa9b6c4de8f32ca7ad0193a3.tar.xz
Do not allow NULL keys when setting options
This should fix a bug where command line options for the "manual" location provider cannot override the config file. To keep compatability with previous versions the command line parser will still special case parsing "-l LAT:LON" and set the correct options in "manual".
Diffstat (limited to 'src/location-geoclue.h')
-rw-r--r--src/location-geoclue.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/location-geoclue.h b/src/location-geoclue.h
index 40ab22c..5f845c7 100644
--- a/src/location-geoclue.h
+++ b/src/location-geoclue.h
@@ -24,9 +24,9 @@
#include <geoclue/geoclue-position.h>
typedef struct {
- GeocluePosition *position; /* main geoclue object */
- const char *provider; /* name of a geoclue provider */
- const char *provider_path; /* path of the geoclue provider */
+ GeocluePosition *position; /* main geoclue object */
+ char *provider; /* name of a geoclue provider */
+ char *provider_path; /* path of the geoclue provider */
} location_geoclue_state_t;
int location_geoclue_init(location_geoclue_state_t *state);