aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mot-encoder.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mot-encoder.c b/src/mot-encoder.c
index 1fdc58e..e0ba57c 100644
--- a/src/mot-encoder.c
+++ b/src/mot-encoder.c
@@ -191,6 +191,10 @@ int main(int argc, char *argv[])
}
int output_fd = open(output, O_WRONLY);
+ if (output_fd == -1) {
+ perror("Failed to open output");
+ return 3;
+ }
MagickWandGenesis();