* src/ftp-ls.c (ftp_parse_winnt_ls): Initialize struct fileinfo cur

Reported-by: Coverity
This commit is contained in:
Tim Rühsen 2016-09-08 16:51:10 +02:00
parent 4febe72bd2
commit 66a9883c8f

View File

@ -478,6 +478,7 @@ ftp_parse_winnt_ls (const char *file)
}
/* Now it is possible to determine the position of the first symbol in
filename. */
memset(&cur, sizeof (cur), 0);
cur.name = xstrdup(filename);
DEBUGP (("Name: '%s'\n", cur.name));