aboutsummaryrefslogtreecommitdiff
path: root/src/parse/parse_check.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/parse_check.c')
-rw-r--r--src/parse/parse_check.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parse/parse_check.c b/src/parse/parse_check.c
index 5a36179..976020b 100644
--- a/src/parse/parse_check.c
+++ b/src/parse/parse_check.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/11 10:59:15 by cacharle #+# #+# */
-/* Updated: 2020/02/04 02:26:18 by cacharle ### ########.fr */
+/* Updated: 2020/02/04 05:07:22 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -34,6 +34,8 @@ t_state *parse_check(t_state *state)
{
int i;
+ if (state == NULL)
+ return (NULL);
i = -1;
while (++i < state->map_width)
{