X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fconf.c;h=6f949f560c1d8be6c1d3183e509761be2efe7260;hp=bea38957c189493be40e86ec75ef164359f4e462;hb=44f9449888344866406c75b178eff83b392b3530;hpb=1243156a5e03a666b36bc4400f1402243a85c9a7 diff --git a/src/conf.c b/src/conf.c index bea38957..6f949f56 100644 --- a/src/conf.c +++ b/src/conf.c @@ -71,7 +71,7 @@ add_config_val(config_t **cfg, int argtype, char *val) config_t *p; char *q; - p = (config_t*)xmalloc(sizeof(config_t)); + p = (config_t*)xmalloc(sizeof(*p)); p->data.val = 0; switch(argtype)