From 00b8de1ca989a0f66517b2a4ccfcc30766f0d669 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Thu, 26 Jul 2018 00:47:48 +0200 Subject: make: prevent dereferencing segfaults. minor style fixes --- src/blogc-make/atom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/blogc-make/atom.c') diff --git a/src/blogc-make/atom.c b/src/blogc-make/atom.c index b953876..9dde35e 100644 --- a/src/blogc-make/atom.c +++ b/src/blogc-make/atom.c @@ -50,7 +50,7 @@ static const char atom_template[] = char* bm_atom_deploy(bm_settings_t *settings, bc_error_t **err) { - if (err == NULL || *err != NULL) + if (settings == NULL || err == NULL || *err != NULL) return NULL; // this is not really portable -- cgit v1.2.3-18-g5258