1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-14 07:30:21 +00:00

Don't reference uninitialized fields in DspInterface when processing window events in no-scroll case.

Initialize variables to suppress "may be uninitialized when used here" warning that couldn't actually happen.
This commit is contained in:
Nick Briggs 2022-12-14 12:38:39 -08:00
parent 8054c62f8a
commit 0ba8380aea

View File

@ -64,7 +64,7 @@ static inline unsigned ubound(unsigned lower, unsigned value, unsigned upper)
void Set_BitGravity(XButtonEvent *event, DspInterface dsp, Window window, int grav)
{
Window OldWindow;
Window OldWindow = 0;
/* Change Background Pixmap of Gravity Window */
XLOCK;
@ -259,6 +259,7 @@ void process_Xevents(DspInterface dsp)
break;
default: break;
}
else if (noscroll) continue;
else if (report.xany.window == dsp->HorScrollBar)
switch (report.type) {
case ButtonPress: