Fixed condition in data_register_alloc().

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@116 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Marcel Telka 23 years ago
parent 172032462b
commit e67cee70fe

@ -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 );

Loading…
Cancel
Save