nfs-cp: don't leave file_context->url unitialized

Signed-off-by: Peter Lieven <pl@kamp.de>
libnfs-4.0.0-vitalif
Peter Lieven 2013-12-26 14:03:57 +01:00
parent eb2759c62b
commit 22fbc5dad8
1 changed files with 1 additions and 0 deletions

View File

@ -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;