aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan2016-09-14 21:00:24 +0000
committerokan2016-09-14 21:00:24 +0000
commit10ebf1c3ea2b2d85a814934adc17e24cc6ea723a (patch)
tree258079c0088bd7fad5fdabec225f7805e03bac46
parent21f94c6aa8f7753b6ba8e738bcdcf29567e3f7f9 (diff)
downloadcwm-10ebf1c3ea2b2d85a814934adc17e24cc6ea723a.tar.gz
Some clients fail to setup hints at all, so initalize for them; fallout
from r1.218 switching to malloc - clearly missed this case. found the hard way by brynet@
-rw-r--r--client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/client.c b/client.c
index 9dea242..38b1471 100644
--- a/client.c
+++ b/client.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: client.c,v 1.220 2016/09/14 19:45:33 okan Exp $
+ * $OpenBSD: client.c,v 1.221 2016/09/14 21:00:24 okan Exp $
*/
#include <sys/types.h>
@@ -78,6 +78,7 @@ client_init(Window win, struct screen_ctx *sc)
cc->flags = 0;
cc->stackingorder = 0;
memset(&cc->hint, 0, sizeof(cc->hint));
+ memset(&cc->ch, 0, sizeof(cc->ch));
cc->ptr.x = -1;
cc->ptr.y = -1;