src/stdlib/SDL_string.c
changeset 11451 b96f291a772e
parent 11265 9152aa462a82
child 11610 6dea196ecbcb
     1.1 --- a/src/stdlib/SDL_string.c	Mon Sep 04 21:16:28 2017 -0700
     1.2 +++ b/src/stdlib/SDL_string.c	Mon Sep 04 22:14:57 2017 -0700
     1.3 @@ -1197,7 +1197,7 @@
     1.4                      /* Fall through to unsigned handling */
     1.5                  case 'u':
     1.6                      if (inttype == DO_LONGLONG) {
     1.7 -                        Uint64 value;
     1.8 +                        Uint64 value = 0;
     1.9                          advance = SDL_ScanUnsignedLongLong(text, radix, &value);
    1.10                          text += advance;
    1.11                          if (advance && !suppress) {
    1.12 @@ -1206,7 +1206,7 @@
    1.13                              ++retval;
    1.14                          }
    1.15                      } else {
    1.16 -                        unsigned long value;
    1.17 +                        unsigned long value = 0;
    1.18                          advance = SDL_ScanUnsignedLong(text, radix, &value);
    1.19                          text += advance;
    1.20                          if (advance && !suppress) {
    1.21 @@ -1240,7 +1240,7 @@
    1.22                      break;
    1.23                  case 'p':
    1.24                      {
    1.25 -                        uintptr_t value;
    1.26 +                        uintptr_t value = 0;
    1.27                          advance = SDL_ScanUintPtrT(text, 16, &value);
    1.28                          text += advance;
    1.29                          if (advance && !suppress) {