From d65c47dfd0125db8ddbc97d1d929f0157ea8dd47 Mon Sep 17 00:00:00 2001 From: diego Date: Mon, 13 Sep 2010 18:06:20 +0000 Subject: tvi_def.h: sizeof(type) -> sizeof(*ptr) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32224 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/tvi_def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream') diff --git a/stream/tvi_def.h b/stream/tvi_def.h index d6a4600ae8..2c35160473 100644 --- a/stream/tvi_def.h +++ b/stream/tvi_def.h @@ -47,7 +47,7 @@ static const tvi_functions_t functions = 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) return NULL; -- cgit v1.2.3