changeset 76:3882efea2640

Oops, sizeof(x) vs sizeof(*x). Fixed.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 11 Dec 2012 15:32:42 +0200
parents cfb475e11b9f
children 1529bd7d7b7e
files th_ioctx.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/th_ioctx.c	Tue Dec 11 15:32:23 2012 +0200
+++ b/th_ioctx.c	Tue Dec 11 15:32:42 2012 +0200
@@ -18,7 +18,7 @@
     if (ctx == NULL || filename == NULL)
         return FALSE;
 
-    th_memset(ctx, 0, sizeof(ctx));
+    th_memset(ctx, 0, sizeof(*ctx));
     ctx->error = error;
     ctx->msg   = msg;