projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix logic error for skipping failed interfaces in if_nameindex
[musl]
/
src
/
stdio
/
vswscanf.c
diff --git
a/src/stdio/vswscanf.c
b/src/stdio/vswscanf.c
index
4396d7d
..
4c39f80
100644
(file)
--- a/
src/stdio/vswscanf.c
+++ b/
src/stdio/vswscanf.c
@@
-17,7
+17,7
@@
static size_t wstring_read(FILE *f, unsigned char *buf, size_t len)
f->rend = f->buf + k;
f->cookie = (void *)src;
- if (!len) return 0;
+ if (!len
|| !k
) return 0;
*buf = *f->rpos++;
return 1;