]> git.street.me.uk Git - andy/viking.git/commitdiff
Some explicit setting of dirpath values to NULL.
authorRob Norris <rw_norris@hotmail.com>
Sat, 20 May 2017 13:14:01 +0000 (14:14 +0100)
committerRob Norris <rw_norris@hotmail.com>
Sat, 20 May 2017 14:22:21 +0000 (15:22 +0100)
src/uibuilder.c
src/viklayer.c

index c351106170ec9c0d4c03f81c1737acdb3fde8901..f2731eb44a4a95ad74dfe430789f11bdd349cf1d 100644 (file)
@@ -468,6 +468,7 @@ gint a_uibuilder_properties_factory ( const gchar *dialog_name,
     {
       VikLayerSetParam vlsp;
       vlsp.is_file_operation = FALSE;
+      vlsp.dirpath = NULL;
       for ( i = 0, j = 0; i < params_count; i++ )
       {
         if ( params[i].group != VIK_LAYER_NOT_IN_PROPERTIES )
index ceb1360d3f0719a5165a0b448d6a92a330cd72d7..8bccdffc5e422ec8a91d8ed580c2a9ee4489b291 100644 (file)
@@ -665,7 +665,8 @@ void vik_layer_set_defaults ( VikLayer *vl, VikViewport *vvp )
   VikLayerSetParam vlsp;
 
   vlsp.is_file_operation = TRUE; // Possibly come from a file
-  vlsp.vp = vvp;
+  vlsp.dirpath = NULL;
+  vlsp.vp      = vvp;
   int i;
   for ( i = 0; i < vli->params_count; i++ ) {
     vlsp.id = i;