diff --git a/lib_jtag_core/src/bsdl_parser/bsdl_loader.c b/lib_jtag_core/src/bsdl_parser/bsdl_loader.c index 68cf399..cce14e6 100644 --- a/lib_jtag_core/src/bsdl_parser/bsdl_loader.c +++ b/lib_jtag_core/src/bsdl_parser/bsdl_loader.c @@ -328,6 +328,9 @@ void preprocess_line(char * line) write_offset = 0; number_of_spaces = 0; + if(!line) + return; + // first pass : remove extra blank while( line[read_offset] ) {