Refs #931. Minor improvements to the S-record parser.

git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@725 5dc33758-31d5-4daf-9ae8-b24bf3d40d73
This commit is contained in:
Frank Voorburg 2019-11-26 15:32:38 +00:00
parent fa59ddedfb
commit 06f47a3de0
1 changed files with 4 additions and 0 deletions

View File

@ -409,6 +409,10 @@ static bool SRecParserExtractLineData(char const * line, uint32_t * address,
if ( (line != NULL) && (address != NULL) && (len != NULL) &&
(data != NULL) ) /*lint !e774 */
{
/* Initialize parameter result values. */
*len = 0;
*address = 0;
/* Determine the line type. */
lineType = SRecParserGetLineType(line);
/* Only continue if the S-record line contains program data. */