iconv was not returning -1 on most failure
[musl] / src / locale / iconv.c
index e1b00de..4ef1477 100644 (file)
@@ -559,9 +559,11 @@ ilseq:
        goto end;
 toobig:
        err = E2BIG;
        goto end;
 toobig:
        err = E2BIG;
+       x = -1;
        goto end;
 starved:
        err = EINVAL;
        goto end;
 starved:
        err = EINVAL;
+       x = -1;
 end:
        errno = err;
        return x;
 end:
        errno = err;
        return x;