summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-07-06 15:09:32 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-07-06 19:32:23 -0500
commitee38e24040b4059ff1e47b58bfcb91c206af8b3c (patch)
treeeeb90ff4c23098e5a4d650cc6c51457b8b1c7cf8 /src/util.c
parenta8138acce5afcc7a3e418008cbfb97987b9c1861 (diff)
downloadofono-ee38e24040b4059ff1e47b58bfcb91c206af8b3c.tar.bz2
GSM to UTF8 should accept empty strings
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 84ce5075..fa5abfad 100644
--- a/src/util.c
+++ b/src/util.c
@@ -186,7 +186,7 @@ char *convert_gsm_to_utf8(const unsigned char *text, long len,
long i = 0;
long res_length;
- if (len == 0 || (len < 0 && !terminator))
+ if (len < 0 && !terminator)
goto err_out;
if (len < 0) {