1
0
mirror of git://git.suckless.org/sbase synced 2024-12-22 23:13:44 +00:00

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++) {