NULL format bug fix

This commit is contained in:
Camille Chauvet 2022-11-23 16:11:06 +01:00
parent 46c8ec6c2f
commit c3c31d05cf

View File

@ -6,7 +6,7 @@
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */ /* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/12 14:34:28 by cchauvet #+# #+# */ /* Created: 2022/10/12 14:34:28 by cchauvet #+# #+# */
/* Updated: 2022/10/12 16:47:32 by cchauvet ### ########.fr */ /* Updated: 2022/11/23 16:09:56 by cchauvet ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -27,6 +27,8 @@ int ft_vdprintf(int fd, const char *format, va_list va)
int i; int i;
int upi; int upi;
if (format == NULL)
return (-1);
i = 0; i = 0;
while (format[0] != 0) while (format[0] != 0)
{ {