diff options
Diffstat (limited to 'roi.c')
-rw-r--r-- | roi.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -237,7 +237,11 @@ main(int argc, char *argv[]) gtk_init(&argc, &argv); + if (argc < 2) + exit(EXIT_FAILURE); roi.input = gdk_pixbuf_new_from_file(argv[1], NULL); + if (!roi.input) + exit(EXIT_FAILURE); roi.window = gtk_window_new(GTK_WINDOW_TOPLEVEL); roi.drawing_area = gtk_drawing_area_new(); |