From 1f78455274f1fc5d182e534028036d40b815d613 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 2 Dec 2015 01:16:08 +0100 Subject: [PATCH] Remove call to Buf_Init --- file_ops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/file_ops.c b/file_ops.c index c055d0d96e..47f4c9b43a 100644 --- a/file_ops.c +++ b/file_ops.c @@ -92,7 +92,9 @@ static bool ConvertUtf16toCharString(const uint16_t *in, char *s, size_t len) CBuf dest; bool ret; - Buf_Init(&dest); + dest.data = 0; + dest.size = 0; + ret = Utf16_To_Char(&dest, in, 0); if (ret)