diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2013-12-09 11:07:47 -0500 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2013-12-09 12:28:45 -0500 |
commit | e4034ba27de725e0fa9b6c4de8f32ca7ad0193a3 (patch) | |
tree | c550355d8a93ae92a7bd7847a3001218c616270d /src/location-geoclue.h | |
parent | Constify gamma parameter to set_temperature() methods (diff) | |
download | redshift-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.h | 6 |
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); |