summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2009-11-09 17:50:42 -0500
committerAdam Jackson <ajax@redhat.com>2009-11-10 15:31:09 -0500
commit7b41b589213293793182b61f20006229a89d5ba7 (patch)
tree97ce4dd4f9a98faa2c0524c38c5113336111a163
parent5e94f071f45ca504ccafe083e2e289351ba6eab4 (diff)
GetCrtcGammaSize: Return 0, not garbage, on failure
Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Jamey Sharp <jamey@minilop.net>
-rw-r--r--src/XrrCrtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XrrCrtc.c b/src/XrrCrtc.c
index db9d0b4..3f048e2 100644
--- a/src/XrrCrtc.c
+++ b/src/XrrCrtc.c
@@ -167,7 +167,7 @@ XRRGetCrtcGammaSize (Display *dpy, RRCrtc crtc)
req->crtc = crtc;
if (!_XReply (dpy, (xReply *) &rep, 0, xFalse))
- rep.status = RRSetConfigFailed;
+ rep.size = 0;
UnlockDisplay (dpy);
SyncHandle ();
return rep.size;