From: Jacob Nevins Date: Sun, 26 Apr 2009 22:19:30 +0000 (+0000) Subject: Several people have spotted an uninitialised structure member leading to a X-Git-Tag: 0.61~151 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=19e47863de300cb330af0fc32469c3d448e042ce;p=PuTTY.git Several people have spotted an uninitialised structure member leading to a potential crash on "reget" in Unix PSFTP. [originally from svn r8516] --- diff --git a/unix/uxsftp.c b/unix/uxsftp.c index a9af614f..b26c4b5a 100644 --- a/unix/uxsftp.c +++ b/unix/uxsftp.c @@ -202,6 +202,7 @@ WFile *open_existing_wfile(char *name, uint64 *size) ret = snew(WFile); ret->fd = fd; + ret->name = dupstr(name); if (size) { struct stat statbuf;