# | Line 229 | Line 229 | mod_add_path(const char *path) | |
---|---|---|
229 | if (mod_find_path(path)) | |
230 | return; | |
231 | ||
232 | < | pathst = xcalloc(sizeof(struct module_path)); |
232 | > | pathst = xcalloc(sizeof(*pathst)); |
233 | pathst->path = xstrdup(path); | |
234 | dlinkAdd(pathst, &pathst->node, &modules_path); | |
235 | } | |
# | Line 245 | Line 245 | add_conf_module(const char *name) | |
245 | { | |
246 | struct module_path *pathst; | |
247 | ||
248 | < | pathst = xcalloc(sizeof(struct module_path)); |
248 | > | pathst = xcalloc(sizeof(*pathst)); |
249 | pathst->path = xstrdup(name); | |
250 | dlinkAdd(pathst, &pathst->node, &modules_conf); | |
251 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines (old) |
> | Changed lines (new) |