Commit 6b2b3b82 authored by Christian Beier's avatar Christian Beier Committed by Johannes Schindelin

libvncclient/vncviewer.c: don't set serverPort in rfbInitClient().

The serverPort member is already set in rfbGetClient(), if we
set it again in rfbInitClient(), this breaks playing of vncrec
files (this relies on serverPort set to -1).
Signed-off-by: 's avatarChristian Beier <dontmind@freeshell.org>
Signed-off-by: 's avatarJohannes Schindelin <johannes.schindelin@gmx.de>
parent d640c94d
......@@ -306,7 +306,6 @@ rfbBool rfbInitClient(rfbClient* client,int* argc,char** argv) {
if(client->serverHost)
free(client->serverHost);
client->serverPort = 5900;
if(colon) {
client->serverHost = strdup(argv[i]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment