From c23b53b0832e7391845c6bb2e05e5bafebb2c634 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 18 May 2013 20:08:03 -0400 Subject: [PATCH] Cast a malloc() call to a specific pointer type. --- theoraplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theoraplay.c b/theoraplay.c index 4d7ece4..e32313a 100644 --- a/theoraplay.c +++ b/theoraplay.c @@ -627,7 +627,7 @@ THEORAPLAY_Decoder *THEORAPLAY_startDecode(THEORAPLAY_Io *io, default: goto startdecode_failed; // invalid/unsupported format. } // switch - ctx = malloc(sizeof (TheoraDecoder)); + ctx = (TheoraDecoder *) malloc(sizeof (TheoraDecoder)); if (ctx == NULL) goto startdecode_failed;