HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83c1803
)
Merge from gnulib (comment change only).
author
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 8 Jan 2013 05:07:19 +0000
(21:07 -0800)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 8 Jan 2013 05:07:19 +0000
(21:07 -0800)
lib/strftime.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/strftime.c
b/lib/strftime.c
index
213ced8
..
c82d585
100644
(file)
--- a/
lib/strftime.c
+++ b/
lib/strftime.c
@@
-208,7
+208,14
@@
extern char *tzname[];
else if (to_uppcase) \
fwrite_uppcase (p, (s), _n); \
else \
- fwrite (s, _n, 1, p); \
+ { \
+ /* Ignore the value of fwrite. The caller can determine whether \
+ an error occured by inspecting ferror (P). All known fwrite \
+ implementations set the stream's error indicator when they \
+ fail due to ENOMEM etc., even though C11 and POSIX.1-2008 do \
+ not require this. */ \
+ fwrite (s, _n, 1, p); \
+ } \
} \
while (0) \
)