diff options
author | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-02-19 17:42:39 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-02-19 17:42:39 +0100 |
commit | 7b2b82106491c78e7a288a77db1f5080ef089d0f (patch) | |
tree | 493a98bc97be86c4aaf34dbe0d29730e855a725b /src/ft_get_tex.c | |
parent | Commit (diff) | |
download | 42-cub3d-7b2b82106491c78e7a288a77db1f5080ef089d0f.tar.gz 42-cub3d-7b2b82106491c78e7a288a77db1f5080ef089d0f.tar.bz2 42-cub3d-7b2b82106491c78e7a288a77db1f5080ef089d0f.tar.xz 42-cub3d-7b2b82106491c78e7a288a77db1f5080ef089d0f.tar.zst 42-cub3d-7b2b82106491c78e7a288a77db1f5080ef089d0f.zip |
go merge
Diffstat (limited to '')
-rw-r--r-- | src/ft_get_tex.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ft_get_tex.c b/src/ft_get_tex.c index ad093ed..58a0358 100644 --- a/src/ft_get_tex.c +++ b/src/ft_get_tex.c @@ -35,6 +35,11 @@ int8_t ft_strlen(FT_ERR_ALLOCATE) + 1); return (-1); } + if (ft_check_not_found(clist->mlist->no_tex_path) < 0) + { + ft_strlcpy(clist->errmsg, FT_ERR_RD_NO, ft_strlen(FT_ERR_RD_NO) + 1); + return (-1); + } return (0); } @@ -59,6 +64,11 @@ int8_t ft_strlen(FT_ERR_ALLOCATE) + 1); return (-1); } + if (ft_check_not_found(clist->mlist->so_tex_path) < 0) + { + ft_strlcpy(clist->errmsg, FT_ERR_RD_SO, ft_strlen(FT_ERR_RD_SO) + 1); + return (-1); + } return (0); } @@ -83,6 +93,11 @@ int8_t ft_strlen(FT_ERR_ALLOCATE) + 1); return (-1); } + if (ft_check_not_found(clist->mlist->ea_tex_path) < 0) + { + ft_strlcpy(clist->errmsg, FT_ERR_RD_EA, ft_strlen(FT_ERR_RD_EA) + 1); + return (-1); + } return (0); } @@ -107,5 +122,10 @@ int8_t ft_strlen(FT_ERR_ALLOCATE) + 1); return (-1); } + if (ft_check_not_found(clist->mlist->we_tex_path) < 0) + { + ft_strlcpy(clist->errmsg, FT_ERR_RD_WE, ft_strlen(FT_ERR_RD_WE) + 1); + return (-1); + } return (0); } |