X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fopenvpn.c;h=ec76a7aa66b5f69f749c6add9adfd15adf8187be;hb=09c12e0e1e0ef340a7074146684650ed54cba64d;hp=8bccce3883a88664598416dbc5a7e0c676c9a051;hpb=1562a17eb4e110c0810b7873bbe2cbed983d6206;p=collectd.git diff --git a/src/openvpn.c b/src/openvpn.c index 8bccce38..ec76a7aa 100644 --- a/src/openvpn.c +++ b/src/openvpn.c @@ -699,7 +699,7 @@ static int openvpn_config (const char *key, const char *value) } /* create a new vpn element since file, version and name are ok */ - temp = (vpn_status_t *) malloc (sizeof (vpn_status_t)); + temp = malloc (sizeof (*temp)); if (temp == NULL) { char errbuf[1024];