chartorunearr: initialize ret
This commit is contained in:
parent
cf714e6edb
commit
4469b0b641
@ -8,7 +8,7 @@
|
|||||||
int
|
int
|
||||||
chartorunearr(const char *str, Rune **r)
|
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;
|
Rune s;
|
||||||
|
|
||||||
for (rlen = 0, roff = 0; roff < len && ret; rlen++) {
|
for (rlen = 0, roff = 0; roff < len && ret; rlen++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user