From 57cf0cdab5480efebaf447d5675e51b0d311ceee Mon Sep 17 00:00:00 2001 From: runge Date: Wed, 11 Jan 2006 15:01:12 +0000 Subject: x11vnc: close fd > 2 in run_user_command(), -nocmds in crash_debug, fix 64bit bug for -solid. --- x11vnc/x11vnc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'x11vnc/x11vnc.c') diff --git a/x11vnc/x11vnc.c b/x11vnc/x11vnc.c index 70026fc..aba7808 100644 --- a/x11vnc/x11vnc.c +++ b/x11vnc/x11vnc.c @@ -207,7 +207,7 @@ static void record_last_fb_update(void) { static int rbs0 = -1; static time_t last_call = 0; time_t now = time(0); - int rbs; + int rbs = -1; rfbClientIteratorPtr iter; rfbClientPtr cl; @@ -629,7 +629,7 @@ static void check_rcfile(int argc, char **argv) { int i, j, pwlast, norc = 0, argmax = 1024; char *infile = NULL; char rcfile[1024]; - FILE *rc; + FILE *rc = NULL; for (i=1; i < argc; i++) { if (!strcmp(argv[i], "-printgui")) { -- cgit v1.2.1