From e4034ba27de725e0fa9b6c4de8f32ca7ad0193a3 Mon Sep 17 00:00:00 2001 From: Jon Lund Steffensen Date: Mon, 9 Dec 2013 11:07:47 -0500 Subject: 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". --- src/location-geoclue.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/location-geoclue.h') 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 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); -- cgit v1.2.3-70-g09d2