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