[SDL] Compile Error SDL_mixer
Torsten Giebl
wizard at syntheticsw.com
Fri Dec 22 11:02:19 PST 2006
Hello !
@PMandin :
With this latest Patch :
--- trunk/SDL_mixer/mixer.c 2006/12/19 19:42:07 2928
+++ trunk/SDL_mixer/mixer.c 2006/12/19 19:55:28 2929
@@ -512,7 +512,7 @@
}
/* Allocate the chunk memory */
- chunk = (Mix_Chunk *)malloc(sizeof(Mix_Chunk));
+ chunk = (Mix_Chunk *)calloc(sizeof(Mix_Chunk));
if ( chunk == NULL ) {
SDL_SetError("Out of memory");
return(NULL);
i got a compile error, just because calloc needs two
statements. Nr of Elements and Size of one Element.
CU
More information about the SDL
mailing list