diff options
author | pranomostro <pranomestro@gmail.com> | 2016-12-02 11:30:48 +0100 |
---|---|---|
committer | pranomostro <pranomestro@gmail.com> | 2016-12-02 11:30:48 +0100 |
commit | 713f9fc99f9fde976aa3f70d5db0202066c07f8a (patch) | |
tree | a6d85f339f7c5855ac5e7772279a921e8af64b89 | |
parent | 6fc1ba2feb25044623c4adbef1c714b7a84f9cbf (diff) |
Check data for being NULL instead of intermediate, we did that already.
-rw-r--r-- | ratox.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |