From: Peter Lieven Date: Thu, 26 Dec 2013 11:48:21 +0000 (+0100) Subject: nfs_parse_url: initialize memory X-Git-Tag: upstream/1.9.6^2~154^2~2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b70567b62c3adc90cd5f52ad869963bb4bd14435;p=deb_libnfs.git nfs_parse_url: initialize memory the urls struct was accidently left unitialized. Signed-off-by: Peter Lieven --- diff --git a/lib/libnfs.c b/lib/libnfs.c index 38da45c..4eb1851 100644 --- a/lib/libnfs.c +++ b/lib/libnfs.c @@ -201,6 +201,7 @@ static struct nfs_url *nfs_parse_url(struct nfs_context *nfs, const char *url, i return NULL; } + memset(urls, 0x00, sizeof(struct nfs_url)); urls->server = strdup(url + 6); if (urls->server == NULL) { nfs_destroy_url(urls);