segfaults have been eliminated
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: mndhlovu <mndhlovu@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2019/04/22 08:55:30 by mndhlovu #+# #+# */
|
||||
/* Updated: 2019/04/24 09:49:38 by tmaze ### ########.fr */
|
||||
/* Updated: 2019/04/26 11:50:56 by mndhlovu ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -16,13 +16,11 @@ int lm_check_room_before(char **tab, t_syntax *synt)
|
||||
{
|
||||
if (tab[0] != NULL && tab[1] != NULL && tab[2] != NULL)
|
||||
{
|
||||
if (!lm_validate_rooms(tab[0], tab[1], tab[2]))
|
||||
{
|
||||
synt->v_error = 1;
|
||||
return (0);
|
||||
}
|
||||
if (lm_validate_rooms(tab[0], tab[1], tab[2]))
|
||||
return (1);
|
||||
}
|
||||
return (1);
|
||||
synt->v_error = 1;
|
||||
return (0);
|
||||
}
|
||||
|
||||
int lm_check_forbiden_chars(char *line, int flag)
|
||||
|
||||
Reference in New Issue
Block a user