We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bae6310 commit 021a392Copy full SHA for 021a392
0x10-variadic_functions/3-print_all.c
@@ -83,7 +83,7 @@ void print_all(const char * const format, ...)
83
va_list ptr;
84
85
va_start(ptr, format);
86
- while (format[index] != '\0')
+ while (format && format[index] != '\0')
87
{
88
while (formats[index2].type != NULL)
89
0 commit comments