diff options
Diffstat (limited to 'm_option.c')
-rw-r--r-- | m_option.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m_option.c b/m_option.c index 6a5565eca0..8224ba7f35 100644 --- a/m_option.c +++ b/m_option.c @@ -1011,7 +1011,7 @@ static int parse_subconf(const m_option_t* opt,const char *name, const char *par subparam[0] == 0 ? NULL : subparam,NULL,src); if(r < 0) return r; if(dst) { - lst = (char**)realloc(lst,2 * (nr+2) * sizeof(char*)); + lst = realloc(lst,2 * (nr+2) * sizeof(char*)); lst[2*nr] = strdup(subopt); lst[2*nr+1] = subparam[0] == 0 ? NULL : strdup(subparam); memset(&lst[2*(nr+1)],0,2*sizeof(char*)); |