freebsd-ports/net/vnc/files/patch-unix-x0vncserver-x0vncserver.cxx
Volker Stolz d937f9d585 Fix "invalid argument" error on startup of x0vncserver
PR:		ports/116567
Submitted by:	Naram Qashat
Approved by:	maintainer timeout
2008-08-05 06:40:04 +00:00

11 lines
362 B
C++

--- x0vncserver/x0vncserver.cxx.old Sat Sep 22 17:03:21 2007
+++ x0vncserver/x0vncserver.cxx Sat Sep 22 17:03:43 2007
@@ -297,7 +297,7 @@
vlog.info("Listening on port %d", (int)rfbport);
while (true) {
- struct timeval tv;
+ struct timeval tv = {0, 0};
struct timeval* tvp = 0;
fd_set rfds;
std::list<Socket*> sockets;