From 60b1f5dd419e50ddfbe507eacf71c66c513c6984 Mon Sep 17 00:00:00 2001 From: Ethan Roseman Date: Fri, 25 Dec 2020 16:38:57 -0500 Subject: [PATCH] Fixing mkldscript.c for mac (#563) --- tools/mkldscript.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/mkldscript.c b/tools/mkldscript.c index 11b7a7e466..ca66156d72 100644 --- a/tools/mkldscript.c +++ b/tools/mkldscript.c @@ -194,10 +194,15 @@ static void parse_rom_spec(char *spec) while (line[0] != 0) { char *nextLine = line_split(line); + char* stmtName; if (line[0] != 0) { - char *stmtName = skip_whitespace(line); + stmtName = skip_whitespace(line); + } + + if (line[0] != 0 && stmtName[0] != 0) + { char *args = token_split(stmtName); unsigned int stmt;