diff options
-rw-r--r-- | fsa/src/vespa/fsa/unicode.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/fsa/src/vespa/fsa/unicode.cpp b/fsa/src/vespa/fsa/unicode.cpp index ee0cdad1766..48569c410a7 100644 --- a/fsa/src/vespa/fsa/unicode.cpp +++ b/fsa/src/vespa/fsa/unicode.cpp @@ -57,14 +57,10 @@ char* Unicode::utf8copy(char *dst, const ucs4_t *src) char* Unicode::utf8ncopy(char *dst, const ucs4_t *src, int maxdst, int maxsrc) { - ucs4_t i; - char *p; - char *edst; - const ucs4_t *esrc; - - p = dst; - edst = dst + maxdst; - esrc = src + maxsrc; + ucs4_t i = 0; + char * p = dst; + char * edst = dst + maxdst; + const ucs4_t * esrc = src + maxsrc; while (src < esrc && (i = *src++) != 0 && p < edst) { if (i < 128) |