From: Ben Pfaff Date: Tue, 3 Aug 2010 05:41:19 +0000 (-0700) Subject: sys-file-writer: Consistently use "goto error" to exit. X-Git-Tag: v0.7.6~297 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4135192829ae81ec367c3e42289822e2629aeef;p=pspp-builds.git sys-file-writer: Consistently use "goto error" to exit. --- 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);