]> git.marmaro.de Git - mmh/blobdiff - sbr/readconfig.c
Replace mh_xmalloc() with mh_xcalloc()
[mmh] / sbr / readconfig.c
index bc9329f451ef321dd700b4feaf0cf6d6816c06f0..747aedea45b1d2a38a976cf5104a50c022e03087 100644 (file)
@@ -52,7 +52,7 @@ readconfig(struct node **npp, FILE *ib, char *file, int ctx)
                                ib)) {
                case FLD:
                case FLDPLUS:
-                       np = (struct node *) mh_xmalloc(sizeof(*np));
+                       np = (struct node *) mh_xcalloc(1, sizeof(*np));
                        *npp = np;
                        *(npp = &np->n_next) = NULL;
                        np->n_name = getcpy(name);