Skip to content

Commit

Permalink
Cast a malloc() call to a specific pointer type.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 19, 2013
1 parent b79ceb2 commit c23b53b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion theoraplay.c
Expand Up @@ -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;

Expand Down

0 comments on commit c23b53b

Please sign in to comment.