changeset 123:a0db9a23f6d4

calloc memory rather than mallocing it - can't hurt too much, and is probably a bit safer
author Matt Johnston <matt@ucc.asn.au>
date Tue, 14 Sep 2004 13:18:16 +0000
parents cb7ef2f63bf0
children 8c08fd2b7f5b
files dbutil.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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");
 	}