From 56884ff2153207182e92a4aca841c4c3bc33551e Mon Sep 17 00:00:00 2001 From: John Kerl Date: Fri, 5 Apr 2024 11:23:45 -0400 Subject: [PATCH] debug --- libtiledbsoma/src/utils/nanoarrow.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libtiledbsoma/src/utils/nanoarrow.c b/libtiledbsoma/src/utils/nanoarrow.c index c946c01362..156f6c87e2 100644 --- a/libtiledbsoma/src/utils/nanoarrow.c +++ b/libtiledbsoma/src/utils/nanoarrow.c @@ -1713,6 +1713,10 @@ int64_t ArrowSchemaToString(const struct ArrowSchema* schema, char* out, int64_t return snprintf(out, n, "[invalid: schema is released]"); } + if (out == NULL) { + return snprintf(out, n, "[invalid: out is released]"); + } + struct ArrowSchemaView schema_view; struct ArrowError error;