We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae5189f commit f820073Copy full SHA for f820073
1 file changed
src/main.c
@@ -55,6 +55,8 @@ int main(int argc, char** argv) {
55
56
/* Convert the ByteArray to a color Image depending on the global mode */
57
Image* image = generation_func(&args, &file_bytes);
58
+ if (image == NULL)
59
+ DIE("Failed to generate image.");
60
61
/* We are done with the initial file bytes, free them */
62
byte_array_destroy(&file_bytes);
0 commit comments