From 2abd83c203ed7363b8c762dd4affa9835ca6dfca Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Thu, 25 Aug 2011 14:34:04 +0200 Subject: fix inverted memset parameters Issue found by the Coverity scanner. --- server/red_dispatcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server') diff --git a/server/red_dispatcher.c b/server/red_dispatcher.c index c00dc580..721c79c1 100644 --- a/server/red_dispatcher.c +++ b/server/red_dispatcher.c @@ -426,7 +426,7 @@ static void red_dispatcher_create_primary_surface_complete(RedDispatcher *dispat dispatcher->primary_active = TRUE; update_client_mouse_allowed(); - memset(&dispatcher->surface_create, sizeof(QXLDevSurfaceCreate), 0); + memset(&dispatcher->surface_create, 0, sizeof(QXLDevSurfaceCreate)); } static void -- cgit