From: ben Date: Mon, 21 Feb 2005 18:13:51 +0000 (+0000) Subject: Make sure that auth->xdmseen is initialised (to NULL) even if it's not used. X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/537e95679583efe2d7cff6003b7e6c9f675a8ec9?ds=sidebyside Make sure that auth->xdmseen is initialised (to NULL) even if it's not used. git-svn-id: svn://svn.tartarus.org/sgt/putty@5375 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/x11fwd.c b/x11fwd.c index b868ecb5..760a80b1 100644 --- a/x11fwd.c +++ b/x11fwd.c @@ -111,6 +111,7 @@ void *x11_invent_auth(char *proto, int protomaxlen, auth->fakelen = 16; for (i = 0; i < 16; i++) auth->fakedata[i] = random_byte(); + auth->xdmseen = NULL; } else { assert(proto_id == X11_XDM); auth->fakeproto = X11_XDM;