From aae2f9e42336371e104c153315d52e3aaede1d58 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Thu, 12 Mar 2020 20:36:46 +0100 Subject: Secured traps --- src/ft_check_missing.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/ft_check_missing.c b/src/ft_check_missing.c index 80edf83..51c0c23 100644 --- a/src/ft_check_missing.c +++ b/src/ft_check_missing.c @@ -44,6 +44,8 @@ static int return (ft_missing_error(FT_ERR_MISS_NLVL, clist)); else if (clist->mlist.isnlvl && !clist->mlist.nlevel_path[0]) return (ft_missing_error(FT_ERR_MISS_NLVL_PATH, clist)); + if (clist->mlist.istraps && !clist->mlist.traps_path[0]) + return (ft_missing_error(FT_ERR_MISS_TRAP, clist)); return (0); } -- cgit v1.2.3