Skip to content
Snippets Groups Projects
Commit a41f9dc0 authored by Matt Johnston's avatar Matt Johnston
Browse files

calloc memory rather than mallocing it - can't hurt too much, and is

probably a bit safer

--HG--
extra : convert_revision : bbd2edbb1410ea8fd7bee089f60154f76d2a0ab7
parent 448a05ae
Branches
Tags
No related merge requests found
...@@ -544,7 +544,7 @@ void * m_malloc(size_t size) { ...@@ -544,7 +544,7 @@ void * m_malloc(size_t size) {
if (size == 0) { if (size == 0) {
dropbear_exit("m_malloc failed"); dropbear_exit("m_malloc failed");
} }
ret = malloc(size); ret = calloc(1, size);
if (ret == NULL) { if (ret == NULL) {
dropbear_exit("m_malloc failed"); dropbear_exit("m_malloc failed");
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment