sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 4469b0b64114e1162e42bb52fc3f7bcc24c8b821
parent cf714e6edb06c7af699dc6654fcb5a94d2d22c6c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 10 Jan 2015 17:37:53 +0100

chartorunearr: initialize ret

Diffstat:
Mlibutf/chartorunearr.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libutf/chartorunearr.c b/libutf/chartorunearr.c @@ -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++) {