Bugfix: Correct allocation check in blkmk_init_generation

This commit is contained in:
Luke Dashjr
2012-10-12 17:27:28 +00:00
parent d597433803
commit 51b32abb20

View File

@@ -78,7 +78,7 @@ uint64_t blkmk_init_generation(blktemplate_t *tmpl, void *script, size_t scripts
off += 4;
struct blktxn_t *txn = calloc(1, sizeof(*tmpl->cbtxn));
if (!tmpl->cbtxn)
if (!txn)
{
free(data);
return 0;