From: Rob Norris Date: Sat, 20 May 2017 13:14:01 +0000 (+0100) Subject: Some explicit setting of dirpath values to NULL. X-Git-Url: https://git.street.me.uk/andy/viking.git/commitdiff_plain/4ac66f7b532b9c57da54bfac28812171c56e97a4 Some explicit setting of dirpath values to NULL. --- diff --git a/src/uibuilder.c b/src/uibuilder.c index c3511061..f2731eb4 100644 --- a/src/uibuilder.c +++ b/src/uibuilder.c @@ -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 ) diff --git a/src/viklayer.c b/src/viklayer.c index ceb1360d..8bccdffc 100644 --- a/src/viklayer.c +++ b/src/viklayer.c @@ -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;