From 0737394fce1ccb4057c81e8bf43dcc1d422674e0 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sun, 5 Mar 2017 22:08:48 +0100 Subject: make: fixed segfault when blogcfile not found --- src/blogc-make/ctx.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/blogc-make') diff --git a/src/blogc-make/ctx.c b/src/blogc-make/ctx.c index ff825e1..fc59457 100644 --- a/src/blogc-make/ctx.c +++ b/src/blogc-make/ctx.c @@ -290,6 +290,8 @@ bm_ctx_free_internal(bm_ctx_t *ctx) void bm_ctx_free(bm_ctx_t *ctx) { + if (ctx == NULL) + return; bm_ctx_free_internal(ctx); free(ctx->blogc); free(ctx->blogc_runserver); -- cgit v1.2.3-18-g5258