diff options
-rw-r--r-- | mg2d.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -772,6 +772,9 @@ void mg2d_print_stats(MG2DContext *ctx, const char *prefix) MG2DLevel *level = priv->root; int64_t other, levels_total = 0; + if (!level) + return; + if (!prefix) prefix = ""; |