[hackers] [sbase] chartorunearr: initialize ret || Hiltjo Posthuma
commit 4469b0b64114e1162e42bb52fc3f7bcc24c8b821
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Sat Jan 10 17:37:53 2015 +0100
chartorunearr: initialize ret
diff --git a/libutf/chartorunearr.c b/libutf/chartorunearr.c
index 8d13e1f..1484d14 100644
--- a/libutf/chartorunearr.c
+++ b/libutf/chartorunearr.c
_AT_@ -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++) {
Received on Sat Jan 10 2015 - 18:00:06 CET
This archive was generated by hypermail 2.3.0
: Sat Jan 10 2015 - 18:12:08 CET