From 06f47a3de0267f6f26039e2f6bde4714dd384b84 Mon Sep 17 00:00:00 2001 From: Frank Voorburg Date: Tue, 26 Nov 2019 15:32:38 +0000 Subject: [PATCH] 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 --- Host/Source/LibOpenBLT/srecparser.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Host/Source/LibOpenBLT/srecparser.c b/Host/Source/LibOpenBLT/srecparser.c index 6a30ccad..d7bd8783 100644 --- a/Host/Source/LibOpenBLT/srecparser.c +++ b/Host/Source/LibOpenBLT/srecparser.c @@ -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. */