1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-12 19:22:41 +00:00

various: Window objects should be initialised to 0 not NULL

This commit is contained in:
Peter Howkins 2021-12-24 17:00:13 +00:00 committed by Jon Trulson
parent 5a763ae48b
commit 341fdfbe71
3 changed files with 3 additions and 3 deletions

View file

@ -2476,7 +2476,7 @@ invokeXDrawFunction(
char * functionName = argv[0]; char * functionName = argv[0];
Display * display; Display * display;
Window drawable; Window drawable;
Window destination = NULL; Window destination = 0;
int srcX = 0, srcY = 0; int srcX = 0, srcY = 0;
int destX = 0, destY = 0; int destX = 0, destY = 0;
unsigned int width = 0, height = 0; unsigned int width = 0, height = 0;

View file

@ -365,7 +365,7 @@ void
ManageSession( struct display *d ) ManageSession( struct display *d )
{ {
int pid; int pid;
Window root = NULL; Window root = 0;
/* Display *dpy; */ /* Display *dpy; */
#ifdef BYPASSLOGIN #ifdef BYPASSLOGIN
char *BypassUsername; char *BypassUsername;

View file

@ -222,7 +222,7 @@ void MainWindow::PopupMenu(Widget widget, XtPointer client_data,
{ {
XRectangle pixmap_rect, label_rect; XRectangle pixmap_rect, label_rect;
XButtonEvent * ev; XButtonEvent * ev;
Window child, parent = NULL, root; Window child, parent = 0, root;
int root_x, root_y, win_x, win_y; int root_x, root_y, win_x, win_y;
unsigned int modMask; unsigned int modMask;
Display * display = XtDisplay(widget); Display * display = XtDisplay(widget);