summaryrefslogtreecommitdiff
path: root/main/datastore.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/datastore.c')
-rw-r--r--main/datastore.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/datastore.c b/main/datastore.c
index a12bbdf34..5edad2413 100644
--- a/main/datastore.c
+++ b/main/datastore.c
@@ -47,7 +47,8 @@ struct ast_datastore *__ast_datastore_alloc(
return NULL;
}
- if (!(datastore = __ast_calloc(1, sizeof(*datastore), file, line, function))) {
+ datastore = __ast_calloc(1, sizeof(*datastore), file, line, function);
+ if (!datastore) {
return NULL;
}