changeset 165:dbf763cb2d52

Initialize line number field in ioctx to 1.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 18 Feb 2015 13:28:18 +0200
parents 46ac5536b2de
children 28fd04f43a95
files th_ioctx.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/th_ioctx.c	Tue Feb 10 13:48:19 2015 +0200
+++ b/th_ioctx.c	Wed Feb 18 13:28:18 2015 +0200
@@ -21,6 +21,7 @@
     memset(ctx, 0, sizeof(*ctx));
     ctx->error = error;
     ctx->msg   = msg;
+    ctx->line  = 1;
 
     if ((ctx->filename = th_strdup(filename)) == NULL)
         return FALSE;