aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorjacob janzen <53062115+JacobJanzen@users.noreply.github.com>2024-02-14 19:45:43 -0600
committerGitHub <noreply@github.com>2024-02-15 01:45:43 +0000
commit762ce2792750dfc662364372f308b03b91aa925c (patch)
tree91025d0cdfc1477c71a3d96afdc9376ebb6cdba8 /src/main.c
parent4c337161da57dfbab4f031220014c881c4cf1b62 (diff)
add readme; name project (#4)
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);