From a9b63dafe96bda21c4da620c906a6c142d3b1306 Mon Sep 17 00:00:00 2001 From: Kolja Waschk Date: Tue, 6 Nov 2007 19:34:26 +0000 Subject: [PATCH] [ 1174000 ] Miscellanous fixes (omitting the speedup for flash.c, obsoleted by an earlier patch) git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@703 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/src/tap/register.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jtag/src/tap/register.c b/jtag/src/tap/register.c index 28c1db97..f8d3e97a 100644 --- a/jtag/src/tap/register.c +++ b/jtag/src/tap/register.c @@ -45,6 +45,8 @@ register_alloc( int len ) return NULL; } + memset(tr->data, 0, len); + tr->string = malloc( len + 1 ); if (!tr->string) { free( tr->data );