[gedit] Avoid potentianl memory corruption in the g_return_if_fail case
- From: Paolo Borelli <pborelli src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gedit] Avoid potentianl memory corruption in the g_return_if_fail case
- Date: Wed, 19 Aug 2009 13:50:51 +0000 (UTC)
commit dab36a10bf3a898cfa8097a2f17c9bcb0410f40b
Author: Paolo Borelli <pborelli gnome org>
Date: Wed Aug 19 15:24:17 2009 +0200
Avoid potentianl memory corruption in the g_return_if_fail case
gedit/gedit-utils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gedit/gedit-utils.c b/gedit/gedit-utils.c
index 7504511..05feb2e 100644
--- a/gedit/gedit-utils.c
+++ b/gedit/gedit-utils.c
@@ -702,7 +702,7 @@ gedit_utils_uri_get_dirname (const gchar *uri)
/* CHECK: does it work with uri chaining? - Paolo */
str = g_path_get_dirname (uri);
- g_return_val_if_fail (str != NULL, ".");
+ g_return_val_if_fail (str != NULL, g_strdup ("."));
if ((strlen (str) == 1) && (*str == '.'))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]