# HG changeset patch # User diego # Date 1284401180 0 # Node ID 0822f74831596f1e3b119a25c72b6385e15f1a5e # Parent 4c2bbab833d1f5abe50773653bacb17c9458a2fe Replace sizeof(type) by sizeof(variable) in malloc invocation. diff -r 4c2bbab833d1 -r 0822f7483159 stream/tvi_def.h --- 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;