2003-02-17 Marcel Telka <marcel@telka.sk>

* src/jtag.c (jtag_parse_line): Fixed segfault for 'set' command.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@366 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Marcel Telka 22 years ago
parent f7b02f3290
commit 29a5f4da8d

@ -1,3 +1,7 @@
2003-02-17 Marcel Telka <marcel@telka.sk>
* src/jtag.c (jtag_parse_line): Fixed segfault for 'set' command.
2003-02-17 Marcel Telka <marcel@telka.sk>
* src/jtag.c (jtag_parse_line): Added new 'get signal' command.

@ -637,6 +637,10 @@ jtag_parse_line( char *line )
dir = (strcmp( t, "in" ) == 0) ? 0 : 1;
if (dir) {
t = get_token( NULL );
if (!t) {
printf( "set: syntax error\n" );
return 1;
}
data = strtol( t, &t, 10 );
if (t && *t) {
printf( "set: syntax error\n" );

Loading…
Cancel
Save