[gnome-system-tools] Fix crash when saving network location
- From: Milan Bouchet-Valat <milanbv src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-system-tools] Fix crash when saving network location
- Date: Sun, 26 Jul 2009 21:51:08 +0000 (UTC)
commit 8d15bceb175e0e99825d9a5ca2884b42a3746915
Author: Milan Bouchet-Valat <nalimilan club fr>
Date: Sun Jul 26 23:50:37 2009 +0200
Fix crash when saving network location
The unset pointer filename was used instead of the name argument, which was leading to crashed on every attempt to save a location.
src/network/network-locations.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/network/network-locations.c b/src/network/network-locations.c
index 45c5fd9..7091f14 100644
--- a/src/network/network-locations.c
+++ b/src/network/network-locations.c
@@ -1116,7 +1116,7 @@ gst_network_locations_save_current (GstNetworkLocations *locations,
g_return_val_if_fail (name && *name, FALSE);
/* Unset the previous configuration with the same name, if any */
- gst_network_locations_delete_location (locations, filename);
+ gst_network_locations_delete_location (locations, name);
filename = g_filename_from_utf8 (name, -1, NULL, NULL, NULL);
str = replace_string (filename, "/", SLASH);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]