src/file/SDL_rwops.c
changeset 8464 a2a909304cfe
parent 8460 f483e8bdae3c
parent 7070 65df21723f58
child 8477 ad08f0d710f3
     1.1 --- a/src/file/SDL_rwops.c	Tue Apr 16 23:40:03 2013 -0400
     1.2 +++ b/src/file/SDL_rwops.c	Sun Apr 21 12:38:44 2013 -0400
     1.3 @@ -635,8 +635,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