From 713f9fc99f9fde976aa3f70d5db0202066c07f8a Mon Sep 17 00:00:00 2001 From: pranomostro Date: Fri, 2 Dec 2016 11:30:48 +0100 Subject: Check data for being NULL instead of intermediate, we did that already. --- ratox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ratox.c b/ratox.c index 96e3031..6a1e8a7 100644 --- a/ratox.c +++ b/ratox.c @@ -1028,7 +1028,7 @@ datasave(void) if (encryptsavefile){ sz += TOX_PASS_ENCRYPTION_EXTRA_LENGTH; data = malloc(sz); - if (!intermediate) + if (!data) eprintf("malloc:"); tox_pass_encrypt(intermediate, sz - TOX_PASS_ENCRYPTION_EXTRA_LENGTH, passphrase, pplen, data, NULL); } else { -- cgit v1.2.3