From: uglym8 Date: Wed, 11 May 2016 16:04:02 +0000 (+0300) Subject: Fix ptr usage X-Git-Tag: v1.6.90~15^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d01de97639f7733df5e1720bee3ef205bb24e128;p=tigervnc.git Fix ptr usage --- diff --git a/unix/vncconfig/vncExt.c b/unix/vncconfig/vncExt.c index ff6b4d65..e9b948d3 100644 --- a/unix/vncconfig/vncExt.c +++ b/unix/vncconfig/vncExt.c @@ -146,7 +146,7 @@ char* XVncExtGetParamDesc(Display* dpy, const char* param) } if (rep.success) { desc = (char*)Xmalloc(rep.descLen+1); - if (!*desc) { + if (!desc) { _XEatData(dpy, (rep.descLen+1)&~1); return False; }