summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-06-22 12:45:18 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-06-22 13:22:14 -0500
commit17b7444b47776ce544340b686b5f6d22c00e3a80 (patch)
tree77ac5ac12ef2638493d977b75c3672a73221833d /src
parentbc831313b32a13dfcf010844fc541c353f29cf1a (diff)
downloadofono-17b7444b47776ce544340b686b5f6d22c00e3a80.tar.bz2
Make compiler happy
Diffstat (limited to 'src')
-rw-r--r--src/smsutil.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/smsutil.c b/src/smsutil.c
index beb11b40..3825f326 100644
--- a/src/smsutil.c
+++ b/src/smsutil.c
@@ -2239,9 +2239,13 @@ GSList *sms_text_prepare(const char *utf8, guint16 ref,
/* UDHI, UDL, UD and DCS actually depend on what we have in the text */
gsm_encoded = convert_utf8_to_gsm(utf8, -1, NULL, &written, 0);
- if (!gsm_encoded)
+ if (!gsm_encoded) {
+ gsize converted;
+
ucs2_encoded = g_convert(utf8, -1, "UCS-2BE//TRANSLIT", "UTF-8",
- NULL, &written, NULL);
+ NULL, &converted, NULL);
+ written = converted;
+ }
if (!gsm_encoded && !ucs2_encoded)
return NULL;