# HG changeset patch # User Matti Hamalainen # Date 1424258898 -7200 # Node ID dbf763cb2d522ea8673878db730b1d4e92369010 # Parent 46ac5536b2de754e80219f506c9c993332fe42ac Initialize line number field in ioctx to 1. diff -r 46ac5536b2de -r dbf763cb2d52 th_ioctx.c --- 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;