From fcad5f23f2ac8c0bd238d23600f1ba50eae4e952 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Fri, 1 Sep 2000 21:54:50 +0000 Subject: Strdup path when setting the callback data. 2000-09-01 Christopher James Lahey * e-local-storage.c: Strdup path when setting the callback data. * evolution-storage.c: Removed an unused variable. svn path=/trunk/; revision=5168 --- shell/ChangeLog | 6 ++++++ shell/e-local-storage.c | 2 +- shell/evolution-storage.c | 1 - 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/shell/ChangeLog b/shell/ChangeLog index a7971bd973..2beeff6f80 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,9 @@ +2000-09-01 Christopher James Lahey + + * e-local-storage.c: Strdup path when setting the callback data. + + * evolution-storage.c: Removed an unused variable. + 2000-08-31 Chris Toshok * e-shell-view.c (init): initialize delayed_selection = NULL; diff --git a/shell/e-local-storage.c b/shell/e-local-storage.c index de8e23e704..a66990f03a 100644 --- a/shell/e-local-storage.c +++ b/shell/e-local-storage.c @@ -465,7 +465,7 @@ impl_async_create_folder (EStorage *storage, callback_data = g_new (AsyncCreateFolderCallbackData, 1); callback_data->storage = storage; - callback_data->path = path; + callback_data->path = g_strdup (path); callback_data->display_name = g_strdup (folder_name); callback_data->type = g_strdup (type); callback_data->description = g_strdup (description); diff --git a/shell/evolution-storage.c b/shell/evolution-storage.c index 6b768770bd..670765482c 100644 --- a/shell/evolution-storage.c +++ b/shell/evolution-storage.c @@ -297,7 +297,6 @@ evolution_storage_new_folder (EvolutionStorage *evolution_storage, Evolution_Folder corba_folder; CORBA_Environment ev; const char *path_basename; - char *parent_path; g_return_val_if_fail (evolution_storage != NULL, EVOLUTION_STORAGE_ERROR_INVALIDPARAMETER); -- cgit v1.2.3