Changed some SDL_memset() calls to SDL_zero().
authorRyan C. Gordon <icculus@icculus.org>
Wed, 18 Mar 2015 10:09:39 -0400
changeset 939292e23eff9b89
parent 9391 3a54985e999e
child 9393 ed79a66e57e5
Changed some SDL_memset() calls to SDL_zero().
src/audio/SDL_audio.c
     1.1 --- a/src/audio/SDL_audio.c	Wed Mar 18 10:09:23 2015 -0400
     1.2 +++ b/src/audio/SDL_audio.c	Wed Mar 18 10:09:39 2015 -0400
     1.3 @@ -784,8 +784,8 @@
     1.4          SDL_AudioQuit();        /* shutdown driver if already running. */
     1.5      }
     1.6  
     1.7 -    SDL_memset(&current_audio, '\0', sizeof(current_audio));
     1.8 -    SDL_memset(open_devices, '\0', sizeof(open_devices));
     1.9 +    SDL_zero(current_audio);
    1.10 +    SDL_zero(open_devices);
    1.11  
    1.12      /* Select the proper audio driver */
    1.13      if (driver_name == NULL) {
    1.14 @@ -801,7 +801,7 @@
    1.15          }
    1.16  
    1.17          tried_to_init = 1;
    1.18 -        SDL_memset(&current_audio, 0, sizeof(current_audio));
    1.19 +        SDL_zero(current_audio);
    1.20          current_audio.name = backend->name;
    1.21          current_audio.desc = backend->desc;
    1.22          initialized = backend->init(&current_audio.impl);
    1.23 @@ -817,7 +817,7 @@
    1.24              }
    1.25          }
    1.26  
    1.27 -        SDL_memset(&current_audio, 0, sizeof(current_audio));
    1.28 +        SDL_zero(current_audio);
    1.29          return -1;            /* No driver was available, so fail. */
    1.30      }
    1.31