Fix [ 1933736 ] "frequency" command segfaults without args

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1172 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Kolja Waschk 17 years ago
parent efcae263b0
commit 6fb0f78c1a

@ -1,3 +1,8 @@
2008-04-19 Kolja Waschk <kawk>
* src/cmd/frequency.c: ensure that cable is initialized. Fixes
[ 1933736 ] "frequency" command segfaults without args
2008-04-19 Arnim Laeuger <arniml@users.sourceforge.net>
* src/bsdl/Makefile.am, src/svf/Makefile.am: ensure that

@ -36,6 +36,9 @@ cmd_frequency_run( chain_t *chain, char *params[] )
{
unsigned int freq;
if (!cmd_test_cable( chain ))
return 1;
if (cmd_params( params ) == 1) {
printf( _("Current TCK frequency is %u Hz\n"), cable_get_frequency(chain->cable) );
return 1;

Loading…
Cancel
Save