diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-08-17 20:47:33 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-08-17 20:47:33 +0300 |
| commit | 395efb9c8a0a0160a7b95769e9484bae5548bbde (patch) | |
| tree | a5b4dc24dd3a2097d055b66b0cde8e23832802eb /src/debug.c | |
| parent | 2023a7b2d9656f80b00de81453348c0a66f200f7 (diff) | |
| download | ek-395efb9c8a0a0160a7b95769e9484bae5548bbde.tar.gz ek-395efb9c8a0a0160a7b95769e9484bae5548bbde.zip | |
add analyzer and fix some reported issues
Diffstat (limited to 'src/debug.c')
| -rw-r--r-- | src/debug.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |
