From: Peter Lieven Date: Thu, 26 Dec 2013 13:03:57 +0000 (+0100) Subject: nfs-cp: don't leave file_context->url unitialized X-Git-Tag: upstream/1.9.6^2~154^2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=22fbc5dad8a1d5a136c37db6299dd40f1878802c;p=deb_libnfs.git nfs-cp: don't leave file_context->url unitialized Signed-off-by: Peter Lieven --- diff --git a/examples/nfs-cp.c b/examples/nfs-cp.c index 4456747..fe9911d 100644 --- a/examples/nfs-cp.c +++ b/examples/nfs-cp.c @@ -132,6 +132,7 @@ open_file(const char *url, int flags) file_context->fd = -1; file_context->nfs = NULL; file_context->nfsfh = NULL; + file_context->url = NULL; if (strncmp(url, "nfs://", 6)) { file_context->is_nfs = 0;