This commit is contained in:
H3XploR
2025-02-25 15:42:59 +01:00
parent fc2ee488f2
commit 6b5b525145
2 changed files with 3 additions and 2 deletions
+3 -2
View File
@@ -6,7 +6,7 @@
/* By: yantoine <yantoine@student.42.fr> +#+ +:+ +#+ */ /* By: yantoine <yantoine@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/14 01:41:17 by yantoine #+# #+# */ /* Created: 2025/02/14 01:41:17 by yantoine #+# #+# */
/* Updated: 2025/02/25 15:41:28 by yantoine ### ########.fr */ /* Updated: 2025/02/25 15:42:48 by yantoine ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@@ -39,9 +39,10 @@ t_scene load_config(const char *filename)
{ {
int fd; int fd;
size_t len; size_t len;
char line[999] = {0}; char line[999];
t_scene scene; t_scene scene;
ft_bzero(line, 999);
scene = create_scene(); scene = create_scene();
fd = open(filename, O_RDONLY); fd = open(filename, O_RDONLY);
if (fd <= 0 || !have_extension(filename)) if (fd <= 0 || !have_extension(filename))
BIN
View File
Binary file not shown.