git » libjio » commit d22c9ca

Initialize op->pdata to NULL inside fill_trans().

author Alberto Bertogli
2004-07-25 01:00:49 UTC
committer Alberto Bertogli
2007-07-15 13:16:57 UTC
parent 40465944543d87a2216f9db0027bd87d644d366b

Initialize op->pdata to NULL inside fill_trans().

Initialize op->pdata to NULL inside fill_trans().

check.c +2 -0

diff --git a/check.c b/check.c
index c8c5de2..44a763c 100644
--- a/check.c
+++ b/check.c
@@ -66,6 +66,8 @@ static int fill_trans(unsigned char *map, off_t len, struct jtrans *ts)
 		op->buf = (void *) p;
 		p += op->len;
 
+		op->pdata = NULL;
+
 		if (ts->op == NULL) {
 			ts->op = op;
 			op->prev = NULL;