diff options
author | Adam Jackson <ajax@redhat.com> | 2008-02-24 20:30:03 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-02-24 20:30:50 -0500 |
commit | 7c169beed2d8324c95385d248777f21c721b332e (patch) | |
tree | 6b74f5d4d63533eddc3d4c5fc541d84e4792458f /src | |
parent | 52040eaaba626dd998f7a5421a923de0b0e06ad2 (diff) |
Bug #13660: XineramaQueryScreens() always modifies the 'number' outparameter.
This makes the code match the man page.
Diffstat (limited to 'src')
-rw-r--r-- | src/Xinerama.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Xinerama.c b/src/Xinerama.c index fa2b197..eff7633 100644 --- a/src/Xinerama.c +++ b/src/Xinerama.c @@ -307,12 +307,11 @@ XineramaQueryScreens( *number = rep.number; } else _XEatData(dpy, rep.length << 2); + } else { + *number = 0; } UnlockDisplay (dpy); SyncHandle (); return scrnInfo; } - - - |