From 762ce2792750dfc662364372f308b03b91aa925c Mon Sep 17 00:00:00 2001 From: jacob janzen <53062115+JacobJanzen@users.noreply.github.com> Date: Wed, 14 Feb 2024 19:45:43 -0600 Subject: add readme; name project (#4) --- src/Makefile.am | 4 ++-- src/main.c | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index b6114f2..f08ba63 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,6 +1,6 @@ -bin_PROGRAMS = main +bin_PROGRAMS = urlg -main_SOURCES = \ +urlg_SOURCES = \ cavegen.c \ cavegen.h \ display.c \ 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); -- cgit v1.2.3