]> git.meshlink.io Git - meshlink/blobdiff - src/conf.c
Fixed small mistake that would prevent forwarding requests.
[meshlink] / src / conf.c
index bea38957c189493be40e86ec75ef164359f4e462..6f949f560c1d8be6c1d3183e509761be2efe7260 100644 (file)
@@ -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)