changeset 556:46f0bea942e4

Initialize th_ioctx::line value to 1.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 05 Jan 2020 10:44:58 +0200
parents 36423638841a
children 5c3697bfefa3
files th_ioctx.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/th_ioctx.c	Sat Jan 04 16:49:25 2020 +0200
+++ b/th_ioctx.c	Sun Jan 05 10:44:58 2020 +0200
@@ -42,6 +42,7 @@
         return THERR_NULLPTR;
 
     ctx->mode = th_strdup(mode);
+    ctx->line = 1;
 
     if (ctx->fops->fopen != NULL)
         ctx->status = ctx->fops->fopen(ctx);