aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 086a093..758fc92 100644
--- a/src/main.c
+++ b/src/main.c
@@ -93,6 +93,10 @@ int main(void)
display_t *disp = display_init();
+ if (!disp) {
+ return EXIT_FAILURE;
+ }
+
// create the map
struct map map;
create_cave(&map);