projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf5a28a
)
sys-file-writer: Consistently use "goto error" to exit.
author
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 3 Aug 2010 05:41:19 +0000
(22:41 -0700)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Mon, 9 Aug 2010 17:59:05 +0000
(10:59 -0700)
src/data/sys-file-writer.c
patch
|
blob
|
history
diff --git
a/src/data/sys-file-writer.c
b/src/data/sys-file-writer.c
index d84e4b4fcd8fea7a8594afd570aea011f723fca9..ac5f4c903ed0266a4e50bc87a43c9b29e177cf9e 100644
(file)
--- a/
src/data/sys-file-writer.c
+++ b/
src/data/sys-file-writer.c
@@
-268,10
+268,7
@@
sfm_open_writer (struct file_handle *fh, struct dictionary *d,
write_int (w, 0);
if (write_error (w))
- {
- close_writer (w);
- return NULL;
- }
+ goto error;
return casewriter_create (dict_get_proto (d), &sys_file_casewriter_class, w);