summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/util.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 057ae1cb..df9d4f01 100644
--- a/src/util.c
+++ b/src/util.c
@@ -1276,6 +1276,12 @@ char *sim_string_to_utf8(const unsigned char *buffer, int length)
offset = 4;
break;
+ case 0xff: /* Special case of empty string */
+ num_chars = 0;
+ ucs2_offset = 0;
+ offset = 0;
+ break;
+
default:
return NULL;
}