[Nautilus-list] [Small patch] Make Nautilus not crash when G_BROKEN_FILENAMES is enabled
- From: Håvard Wigtil <havardw stud ntnu no>
- To: Darin Adler <darin bentspoon com>
- Cc: Nautilus list <nautilus-list lists eazel com>
- Subject: [Nautilus-list] [Small patch] Make Nautilus not crash when G_BROKEN_FILENAMES is enabled
- Date: 26 Feb 2002 16:17:06 +0100
When G_BROKEN_FILENAMES is enabled a string is assigned a new value and
then freed. The following patch frees the old value instead.
--
Håvard
havardw stud ntnu no||http://www.stud.ntnu.no/~havardw||+47 93 84 64 68
All it takes to start an avalanche is one snowflake||Or a snowboarder
Oh! Un Fraggle! Regarde, maman! J'ai attrapé un Fraggle!
? locale_filenames.patch
Index: libnautilus-private/nautilus-file.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-file.c,v
retrieving revision 1.277
diff -u -r1.277 nautilus-file.c
--- libnautilus-private/nautilus-file.c 2002/02/21 19:26:46 1.277
+++ libnautilus-private/nautilus-file.c 2002/02/26 15:04:54
@@ -2175,8 +2175,8 @@
if (g_getenv ("G_BROKEN_FILENAMES") != NULL && nautilus_file_is_local (file)) {
utf8_name = g_filename_to_utf8 (name, -1, NULL, NULL, NULL);
if (utf8_name != NULL) {
- name = utf8_name;
g_free (name);
+ name = utf8_name;
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]