[Spice-devel] [PATCH spice-server] display-channel: Do not use bzero

Frediano Ziglio fziglio at redhat.com
Wed Jun 20 13:31:41 UTC 2018


Used only in this file.
Not defined in MingW.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/display-channel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/display-channel.c b/server/display-channel.c
index 5f2e866f..b5e4b61d 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -1627,7 +1627,7 @@ static Drawable *display_channel_drawable_try_new(DisplayChannel *display,
             return NULL;
     }
 
-    bzero(drawable, sizeof(Drawable));
+    memset(drawable, 0, sizeof(Drawable));
     /* Pointer to the display from which the drawable is allocated.  This
      * pointer is safe to be retained as DisplayChannel lifespan is bigger than
      * all drawables.  */
-- 
2.17.1



More information about the Spice-devel mailing list