[MPlayer-cvslog] r32224 - trunk/stream/tvi_def.h

diego subversion at mplayerhq.hu
Mon Sep 13 20:06:20 CEST 2010


Author: diego
Date: Mon Sep 13 20:06:20 2010
New Revision: 32224

Log:
Replace sizeof(type) by sizeof(variable) in malloc invocation.

Modified:
   trunk/stream/tvi_def.h

Modified: trunk/stream/tvi_def.h
==============================================================================
--- trunk/stream/tvi_def.h	Mon Sep 13 17:43:13 2010	(r32223)
+++ trunk/stream/tvi_def.h	Mon Sep 13 20:06:20 2010	(r32224)
@@ -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;


More information about the MPlayer-cvslog mailing list