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:
102cfe9
)
(Fwrite_region): Move the code that writes annotations for empty files.
author
Richard M. Stallman
<rms@gnu.org>
Fri, 10 Nov 1995 06:44:54 +0000
(06:44 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Fri, 10 Nov 1995 06:44:54 +0000
(06:44 +0000)
src/fileio.c
patch
|
blob
|
blame
|
history
diff --git
a/src/fileio.c
b/src/fileio.c
index
f6f99e5
..
47b987a
100644
(file)
--- a/
src/fileio.c
+++ b/
src/fileio.c
@@
-3427,13
+3427,12
@@
to the file, instead of any buffer contents, and END is ignored.")
nwritten += XINT (end) - tem;
save_errno = errno;
}
-
- if (nwritten == 0)
- {
- /* If file was empty, still need to write the annotations */
- failure = 0 > a_write (desc, "", 0, XINT (start), &annotations);
- save_errno = errno;
- }
+ }
+ else
+ {
+ /* If file was empty, still need to write the annotations */
+ failure = 0 > a_write (desc, "", 0, XINT (start), &annotations);
+ save_errno = errno;
}
immediate_quit = 0;