Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: fusl/src/stdio/fread.c

Issue 1689833004: [fusl] Update fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: remove stray space Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fusl/src/regex/regcomp.c ('k') | fusl/src/stdio/fwrite.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fusl/src/stdio/fread.c
diff --git a/fusl/src/stdio/fread.c b/fusl/src/stdio/fread.c
index 33a65f586ead4649ef537ce53780ea7e12fd0e8e..aef75f7376f700dd584bf346ab1b7b17717ab097 100644
--- a/fusl/src/stdio/fread.c
+++ b/fusl/src/stdio/fread.c
@@ -7,6 +7,7 @@ size_t fread(void *restrict destv, size_t size, size_t nmemb, FILE *restrict f)
{
unsigned char *dest = destv;
size_t len = size*nmemb, l = len, k;
+ if (!size) nmemb = 0;
FLOCK(f);
« no previous file with comments | « fusl/src/regex/regcomp.c ('k') | fusl/src/stdio/fwrite.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698