comparison src/video/x11/SDL_x11events.c @ 4524:a256e1dadf3f

Zero any fields not explicitly filled in.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 14 Jul 2010 07:25:07 -0700
parents 0c67c4328678
children ce811c9247da
comparison
equal deleted inserted replaced
4523:657bea918a30 4524:a256e1dadf3f
379 #ifdef DEBUG_XEVENTS 379 #ifdef DEBUG_XEVENTS
380 printf("SelectionRequest (requestor = %ld, target = %ld)\n", 380 printf("SelectionRequest (requestor = %ld, target = %ld)\n",
381 req->requestor, req->target); 381 req->requestor, req->target);
382 #endif 382 #endif
383 383
384 SDL_zero(sevent);
384 sevent.xany.type = SelectionNotify; 385 sevent.xany.type = SelectionNotify;
385 sevent.xselection.selection = req->selection; 386 sevent.xselection.selection = req->selection;
386 sevent.xselection.target = None; 387 sevent.xselection.target = None;
387 sevent.xselection.property = None; 388 sevent.xselection.property = None;
388 sevent.xselection.requestor = req->requestor; 389 sevent.xselection.requestor = req->requestor;