diff options
Diffstat (limited to 'src/index.c')
-rw-r--r-- | src/index.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/index.c b/src/index.c index 2fe8cb4..ccb4713 100644 --- a/src/index.c +++ b/src/index.c @@ -205,6 +205,7 @@ static int index_main(void *ctx, struct apk_database *db, struct apk_string_arra os = apk_ostream_to_file(AT_FDCWD, ictx->output, NULL, 0644); else os = apk_ostream_to_fd(STDOUT_FILENO); + if (IS_ERR_OR_NULL(os)) return -1; if (ictx->method == APK_SIGN_GENERATE) { struct apk_ostream *counter; |