From 395efb9c8a0a0160a7b95769e9484bae5548bbde Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 17 Aug 2024 20:47:33 +0300 Subject: add analyzer and fix some reported issues --- src/debug.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/debug.c') diff --git a/src/debug.c b/src/debug.c index 32c74a2..f91accd 100644 --- a/src/debug.c +++ b/src/debug.c @@ -345,6 +345,8 @@ char *type_str(struct type *t) char *buf = NULL; size_t size = 0; /* hehe */ FILE *memstream = open_memstream(&buf, &size); + if (!memstream) + return NULL; _type_str(memstream, t); -- cgit v1.3