Skip to content

Commit

Permalink
Fix use uninitialized ofs variable introduced in 39701.
Browse files Browse the repository at this point in the history
(cherry picked from commit 439c97e)
  • Loading branch information
bruvzg authored and akien-mga committed Jun 22, 2020
1 parent 8fd861a commit a662b85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platform/windows/joypad_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ void JoypadWindows::setup_joypad_object(const DIDEVICEOBJECTINSTANCE *ob, int p_
if (slider_count < 2) {
ofs = DIJOFS_SLIDER(slider_count);
slider_count++;
} else {
return;
}
} else
return;
Expand Down

0 comments on commit a662b85

Please sign in to comment.