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