diff options
author | Stefan Bolte <sbolte@lavabit.com> | 2013-05-15 16:11:08 +0200 |
---|---|---|
committer | Stefan Bolte <sbolte@lavabit.com> | 2013-05-15 16:11:08 +0200 |
commit | 19ba63435ea39eb865e593b493fef517267b788e (patch) | |
tree | 20c2a1b01ab44c37003f15d8e8f0ac7c0f62950d /tools | |
parent | 1b79e51c6c864ec6e0bc059c9e6a2d7f6994204c (diff) | |
download | dwb-19ba63435ea39eb865e593b493fef517267b788e.zip |
Abort if output cannot be written
Diffstat (limited to 'tools')
-rw-r--r-- | tools/exar/exar.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/exar/exar.c b/tools/exar/exar.c index 991c2377..6824846c 100644 --- a/tools/exar/exar.c +++ b/tools/exar/exar.c @@ -211,6 +211,7 @@ exar_unpack(const char *path, const char *dest) if (of == NULL) { perror("fopen"); + goto error_out; } LOG(2, "Writing %s (%lu bytes)\n", name, fs); |