From 94e6ce34975ede62fe31d9112ef450255ad94f15 Mon Sep 17 00:00:00 2001
From: Pablo Barciela <scow@riseup.net>
Date: Mon, 8 Apr 2019 21:28:53 +0200
Subject: async-getprop: Fix cast from non-struct type to struct type

Fixes Clang static analyzer warning:

core/async-getprop.c:277:11: warning: Casting a non-structure type to a structure type and accessing a field can lead to memory access errors or data corruption
  reply = (xGetPropertyReply *)
          ^~~~~~~~~~~~~~~~~~~~~
---
 src/core/async-getprop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/async-getprop.c b/src/core/async-getprop.c
index d968ca2a..41d9c8ae 100644
--- a/src/core/async-getprop.c
+++ b/src/core/async-getprop.c
@@ -274,7 +274,7 @@ async_get_property_handler (Display *dpy,
 #endif
 
   /* (kind of a silly as we know sizeof(xGetPropertyReply) == sizeof(xReply)) */
-  reply = (xGetPropertyReply *)
+  reply = (xGetPropertyReply *) (void *)
     _XGetAsyncReply (dpy, (char *)&replbuf, rep, buf, len,
                      (SIZEOF (xGetPropertyReply) - bytes_read) >> 2, /* in 32-bit words */
                      False); /* False means expecting more data to follow,
-- 
cgit v1.2.1