diff options
author | Adam Jackson <ajax@redhat.com> | 2009-11-09 17:50:42 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2009-11-10 15:31:09 -0500 |
commit | 7b41b589213293793182b61f20006229a89d5ba7 (patch) | |
tree | 97ce4dd4f9a98faa2c0524c38c5113336111a163 | |
parent | 5e94f071f45ca504ccafe083e2e289351ba6eab4 (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.c | 2 |
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; |