diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2017-03-05 22:08:48 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2017-03-05 22:08:54 +0100 |
commit | 0737394fce1ccb4057c81e8bf43dcc1d422674e0 (patch) | |
tree | 9880c7e86dee429c3dfd05e1148fc785ff89334c /src/blogc-make/ctx.c | |
parent | 89e95da1eae31fd20da5039f96ebb5d2c447040c (diff) | |
download | blogc-0737394fce1ccb4057c81e8bf43dcc1d422674e0.tar.gz blogc-0737394fce1ccb4057c81e8bf43dcc1d422674e0.tar.bz2 blogc-0737394fce1ccb4057c81e8bf43dcc1d422674e0.zip |
make: fixed segfault when blogcfile not found
Diffstat (limited to 'src/blogc-make/ctx.c')
-rw-r--r-- | src/blogc-make/ctx.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |