dtfile: Resolve uninitialized warnings

This commit is contained in:
Peter Howkins
2021-12-22 01:24:35 +00:00
committed by Jon Trulson
parent daf072463a
commit 207253b401
9 changed files with 52 additions and 40 deletions

View File

@@ -290,8 +290,8 @@ FileWindowInputCallback(
DirectorySet * directoryData;
XEvent *new_event;
XButtonPressedEvent *event;
XKeyEvent *kevent;
Widget eventIcon;
XKeyEvent *kevent = NULL;
Widget eventIcon = NULL;
int i, j;
FileViewData * fileViewData = NULL;
Arg args[10];
@@ -373,8 +373,11 @@ FileWindowInputCallback(
/* get the gadget that received the input */
if (keybdFocusPolicy == XmEXPLICIT)
eventIcon = (Widget) XmGetFocusWidget(w);
else
eventIcon = (Widget) InputForGadget(w, kevent->x, kevent->y);
else {
if(kevent) {
eventIcon = (Widget) InputForGadget(w, kevent->x, kevent->y);
}
}
if (eventIcon == NULL)
return;