add missing malloc for cable_params in usbblaster_connect()

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1250 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Arnim Läuger 17 years ago
parent b0430f13ac
commit e3c88d3cb7

@ -67,6 +67,13 @@ usbblaster_connect( char *params[], cable_t *cable )
params_t *cable_params;
int result;
cable_params = (params_t *)malloc( sizeof(params_t) );
if (!cable_params)
{
free( cable );
return 4;
}
/* perform generic_usbconn_connect */
result = generic_usbconn_connect( params, cable );

Loading…
Cancel
Save