aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-make/atom.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2018-07-26 00:47:48 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2018-07-26 00:47:48 +0200
commit00b8de1ca989a0f66517b2a4ccfcc30766f0d669 (patch)
tree9476afdda2e0b7fa431fe88dbc5554a509bcb2df /src/blogc-make/atom.c
parenteae0bfe730bb4f29f88c609c2562025a9d029256 (diff)
downloadblogc-00b8de1ca989a0f66517b2a4ccfcc30766f0d669.tar.gz
blogc-00b8de1ca989a0f66517b2a4ccfcc30766f0d669.tar.bz2
blogc-00b8de1ca989a0f66517b2a4ccfcc30766f0d669.zip
make: prevent dereferencing segfaults. minor style fixes
Diffstat (limited to 'src/blogc-make/atom.c')
-rw-r--r--src/blogc-make/atom.c2
1 files changed, 1 insertions, 1 deletions
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