ratox

FIFO based tox client
git clone git://git.2f30.org/ratox
Log | Files | Refs | README | LICENSE

commit 713f9fc99f9fde976aa3f70d5db0202066c07f8a
parent 6fc1ba2feb25044623c4adbef1c714b7a84f9cbf
Author: pranomostro <pranomestro@gmail.com>
Date:   Fri,  2 Dec 2016 11:30:48 +0100

Check data for being NULL instead of intermediate, we did that already.

Diffstat:
Mratox.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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 {