X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Ffwrite.c;h=81ec271e1bcb7ba477f92c8af74e4cc159deb032;hb=699d4532f6a8f792271c7f46608e2505ca3afc21;hp=d5f6542d6bebe32ec6dac9ac319e8eaf430dfcd4;hpb=835f9f950e2f6059532bd9ab9857a856ed21a4fd;p=musl diff --git a/src/stdio/fwrite.c b/src/stdio/fwrite.c index d5f6542d..81ec271e 100644 --- a/src/stdio/fwrite.c +++ b/src/stdio/fwrite.c @@ -28,7 +28,6 @@ size_t __fwritex(const unsigned char *restrict s, size_t l, FILE *restrict f) size_t fwrite(const void *restrict src, size_t size, size_t nmemb, FILE *restrict f) { size_t k, l = size*nmemb; - if (!l) return l; FLOCK(f); k = __fwritex(src, l, f); FUNLOCK(f);