changeset 32140:0822f7483159

Replace sizeof(type) by sizeof(variable) in malloc invocation.
author diego
date Mon, 13 Sep 2010 18:06:20 +0000
parents 4c2bbab833d1
children 2802b8095bf7
files stream/tvi_def.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/tvi_def.h	Mon Sep 13 15:43:13 2010 +0000
+++ b/stream/tvi_def.h	Mon Sep 13 18:06:20 2010 +0000
@@ -47,7 +47,7 @@
 
 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;