From d4135192829ae81ec367c3e42289822e2629aeef Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 2 Aug 2010 22:41:19 -0700 Subject: [PATCH] sys-file-writer: Consistently use "goto error" to exit. --- src/data/sys-file-writer.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/data/sys-file-writer.c b/src/data/sys-file-writer.c index d84e4b4f..ac5f4c90 100644 --- 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); -- 2.30.2