summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
Diffstat (limited to 'ratox.c')
-rw-r--r--ratox.c2
1 files changed, 1 insertions, 1 deletions
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 {