# HG changeset patch # User reimar # Date 1140640784 0 # Node ID 8f036d112bb626bf98abbcca21a0adfeace15fd6 # Parent 87d2ac3e2354b77a58c448b641345596f72dfba6 use calloc instead of malloc in copy_func_pf, missing initialization of next field caused crash (fixes bug #459) diff -r 87d2ac3e2354 -r 8f036d112bb6 m_option.c --- a/m_option.c Wed Feb 22 11:32:41 2006 +0000 +++ b/m_option.c Wed Feb 22 20:39:44 2006 +0000 @@ -718,7 +718,7 @@ free_func_pf(dst); while(s) { - d = (m_func_save_t*)malloc(sizeof(m_func_save_t)); + d = (m_func_save_t*)calloc(1,sizeof(m_func_save_t)); d->name = strdup(s->name); d->param = s->param ? strdup(s->param) : NULL; if(last)