chartorunearr: initialize ret

This commit is contained in:
Hiltjo Posthuma 2015-01-10 17:37:53 +01:00 committed by sin
parent cf714e6edb
commit 4469b0b641

View File

@ -8,7 +8,7 @@
int
chartorunearr(const char *str, Rune **r)
{
size_t len = strlen(str), rlen, roff, ret, i;
size_t len = strlen(str), rlen, roff, ret = 1, i;
Rune s;
for (rlen = 0, roff = 0; roff < len && ret; rlen++) {