From e67cee70fecfd4940fa8ea25b5939a03844e9d30 Mon Sep 17 00:00:00 2001 From: Marcel Telka Date: Mon, 26 Aug 2002 23:20:58 +0000 Subject: [PATCH] Fixed condition in data_register_alloc(). git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@116 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/src/part/data_register.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jtag/src/part/data_register.c b/jtag/src/part/data_register.c index 40e40c2e..f7eb6a89 100644 --- a/jtag/src/part/data_register.c +++ b/jtag/src/part/data_register.c @@ -47,7 +47,7 @@ data_register_alloc( const char *name, int len ) dr->value = register_alloc( len ); dr->oldval = register_alloc( len ); - if (!dr->value || dr->oldval) { + if (!dr->value || !dr->oldval) { free( dr->value ); free( dr->oldval ); free( dr->name );