shithub: rd

Download patch

ref: 419ee230af7d3560e84e559dd70ae14652e7e53f
parent: 20156393be201341d9b374b71ce43a7bc69a068b
author: Yaroslav Kolomiiets <yarikos@gmail.com>
date: Wed May 18 16:01:47 EDT 2016

fixes

--- a/rd.c
+++ b/rd.c
@@ -100,8 +100,6 @@
 void
 initscreen(Rdp* c)
 {
-	if(c->label == nil)
-		c->label = smprint("rd %s", server);
 	if(initdraw(drawerror, nil, c->label) < 0)
 		sysfatal("initdraw: %r");
 	display->locking = 1;
@@ -142,7 +140,6 @@
 
 	keyspec = "";
 	doauth = 1;
-	label = nil;
 
 	ARGBEGIN {
 	case 'A':
@@ -194,6 +191,8 @@
 		}
 	}else
 		c->user = "";
+	if(c->label == nil)
+		c->label = smprint("rd %s", server);
 
 	initvc(c);