src/file/SDL_rwops.c
changeset 7070 65df21723f58
parent 7037 3fedf1f25b94
child 7191 75360622e65f
child 8464 a2a909304cfe
     1.1 --- a/src/file/SDL_rwops.c	Tue Apr 16 09:33:33 2013 -0700
     1.2 +++ b/src/file/SDL_rwops.c	Wed Apr 17 01:32:06 2013 -0700
     1.3 @@ -628,8 +628,9 @@
     1.4      area = (SDL_RWops *) SDL_malloc(sizeof *area);
     1.5      if (area == NULL) {
     1.6          SDL_OutOfMemory();
     1.7 +    } else {
     1.8 +        area->type = SDL_RWOPS_UNKNOWN;
     1.9      }
    1.10 -    area->type = SDL_RWOPS_UNKNOWN;
    1.11      return (area);
    1.12  }
    1.13