X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Freadconfig.c;h=c99b7cd1bce4414d0b610f8f162c382972c4adcc;hp=bc9329f451ef321dd700b4feaf0cf6d6816c06f0;hb=b78007de9802005825390bee71dfce2306b42519;hpb=4dc39c08f07428ff5f39acd7b0ddee30e0a004f6 diff --git a/sbr/readconfig.c b/sbr/readconfig.c index bc9329f..c99b7cd 100644 --- a/sbr/readconfig.c +++ b/sbr/readconfig.c @@ -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 = mh_xcalloc(1, sizeof(*np)); *npp = np; *(npp = &np->n_next) = NULL; np->n_name = getcpy(name);