# HG changeset patch # User Matt Johnston # Date 1095167896 0 # Node ID a0db9a23f6d42bea28fe080973d2d0bd7e7b9686 # Parent cb7ef2f63bf05562eb3b7786d35da6e8e9cc08aa calloc memory rather than mallocing it - can't hurt too much, and is probably a bit safer diff -r cb7ef2f63bf0 -r a0db9a23f6d4 dbutil.c --- a/dbutil.c Tue Sep 14 13:09:29 2004 +0000 +++ b/dbutil.c Tue Sep 14 13:18:16 2004 +0000 @@ -544,7 +544,7 @@ if (size == 0) { dropbear_exit("m_malloc failed"); } - ret = malloc(size); + ret = calloc(1, size); if (ret == NULL) { dropbear_exit("m_malloc failed"); }