... | ... |
@@ -422,7 +422,7 @@ struct replace_lst* subst_run(struct subst_expr* se, char* input, |
422 | 422 |
LOG(L_ERR, "ERROR: subst_run: out of mem (crt)\n"); |
423 | 423 |
goto error; |
424 | 424 |
} |
425 |
- memset(*crt, sizeof(struct replace_lst), 0); |
|
425 |
+ memset(*crt, 0, sizeof(struct replace_lst)); |
|
426 | 426 |
if (pmatch[0].rm_so==-1){ |
427 | 427 |
LOG(L_ERR, "ERROR: subst_run: unknown offset?\n"); |
428 | 428 |
goto error; |