diff options
author | Marvin Borner | 2021-01-07 14:49:58 +0100 |
---|---|---|
committer | Marvin Borner | 2021-01-07 14:49:58 +0100 |
commit | 53c04d0f46bb95c16493d4ef0d102f69c171d315 (patch) | |
tree | fc67650f32e404262ab119badf10f16a2f276d2b | |
parent | 75526aea5027d76b9f7cf07b8741cd7c8642f4ed (diff) |
Added non-NULL assertion
-rw-r--r-- | libc/print.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/print.c b/libc/print.c index 629a410..a9e21f6 100644 --- a/libc/print.c +++ b/libc/print.c @@ -36,6 +36,7 @@ int vsprintf(char *str, const char *format, va_list ap) // TODO: Improve this repetitive code if (buf == 's') { char *string = va_arg(ap, char *); + assert(string); append(str, string, i); i = strlen(str); } else if (buf == 'x') { |