From 522bd24d19f00d25125942a95c8dcf5712d38485 Mon Sep 17 00:00:00 2001 From: Vic Lee Date: Thu, 29 Dec 2011 21:26:34 +0800 Subject: [PATCH] xfreerdp: fix trivial compile warnings. --- client/X11/xfreerdp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/X11/xfreerdp.c b/client/X11/xfreerdp.c index 614418cf1..19da752ed 100644 --- a/client/X11/xfreerdp.c +++ b/client/X11/xfreerdp.c @@ -395,6 +395,7 @@ boolean xf_get_pixmap_info(xfInfo* xfi) return false; } + vi = NULL; for (i = 0; i < vi_count; i++) { vi = vis + i; @@ -433,7 +434,7 @@ int xf_error_handler(Display* d, XErrorEvent* ev) int do_abort = true; XGetErrorText(d, ev->error_code, buf, sizeof(buf)); - printf(buf); + printf("%s", buf); if (do_abort) abort();