[brasero] Fix wrong return value in function validating UTF8 strings
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Subject: [brasero] Fix wrong return value in function validating UTF8 strings
- Date: Wed, 13 May 2009 09:21:38 -0400 (EDT)
commit a5a0d27b9f45f6db4cffaf42da261b326135957a
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Wed May 13 13:46:05 2009 +0200
Fix wrong return value in function validating UTF8 strings
---
libbrasero-utils/brasero-misc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libbrasero-utils/brasero-misc.c b/libbrasero-utils/brasero-misc.c
index 30329e8..b0be9c7 100644
--- a/libbrasero-utils/brasero-misc.c
+++ b/libbrasero-utils/brasero-misc.c
@@ -140,7 +140,7 @@ brasero_utils_validate_utf8 (const gchar *name)
return NULL;
if (g_utf8_validate (name, -1, &invalid))
- return NULL;
+ return g_strdup (name);
retval = g_strdup (name);
ptr = retval + (invalid - name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]