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

Christophe Fergeau cfergeau at redhat.com
Tue Jun 26 09:46:12 UTC 2018


Acked-by: Christophe Fergeau <cfergeau at redhat.com>

On Wed, Jun 20, 2018 at 02:31:41PM +0100, Frediano Ziglio wrote:
> 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
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20180626/8e0ad92c/attachment.sig>


More information about the Spice-devel mailing list