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:
parent
8054c62f8a
commit
0ba8380aea
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user