mirror of https://github.com/mpv-player/mpv
tvi_def.h: sizeof(type) -> sizeof(*ptr)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32224 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
39f7201ea4
commit
d65c47dfd0
|
@ -47,7 +47,7 @@ static const tvi_functions_t functions =
|
||||||
|
|
||||||
static tvi_handle_t *new_handle(void)
|
static tvi_handle_t *new_handle(void)
|
||||||
{
|
{
|
||||||
tvi_handle_t *h = malloc(sizeof(tvi_handle_t));
|
tvi_handle_t *h = malloc(sizeof(*h));
|
||||||
|
|
||||||
if (!h)
|
if (!h)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue