Fix bug 4746 - introduce SDL_zeroa macro.
This commit is contained in:
parent
ac4cb57923
commit
ab8f831379
5 changed files with 9 additions and 8 deletions
|
@ -642,8 +642,8 @@ SDL_PrivateGameControllerParseControllerConfigString(SDL_GameController *gamecon
|
|||
int i = 0;
|
||||
const char *pchPos = pchString;
|
||||
|
||||
SDL_zero(szGameButton);
|
||||
SDL_zero(szJoystickButton);
|
||||
SDL_zeroa(szGameButton);
|
||||
SDL_zeroa(szJoystickButton);
|
||||
|
||||
while (pchPos && *pchPos) {
|
||||
if (*pchPos == ':') {
|
||||
|
@ -655,8 +655,8 @@ SDL_PrivateGameControllerParseControllerConfigString(SDL_GameController *gamecon
|
|||
i = 0;
|
||||
bGameButton = SDL_TRUE;
|
||||
SDL_PrivateGameControllerParseElement(gamecontroller, szGameButton, szJoystickButton);
|
||||
SDL_zero(szGameButton);
|
||||
SDL_zero(szJoystickButton);
|
||||
SDL_zeroa(szGameButton);
|
||||
SDL_zeroa(szJoystickButton);
|
||||
|
||||
} else if (bGameButton) {
|
||||
if (i >= sizeof(szGameButton)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue