summaryrefslogtreecommitdiff
path: root/lib/x1000-installer/src/xf_flashmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/x1000-installer/src/xf_flashmap.c')
-rw-r--r--lib/x1000-installer/src/xf_flashmap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/x1000-installer/src/xf_flashmap.c b/lib/x1000-installer/src/xf_flashmap.c
index 75cd3c5905..2cde0f1c20 100644
--- a/lib/x1000-installer/src/xf_flashmap.c
+++ b/lib/x1000-installer/src/xf_flashmap.c
@@ -193,6 +193,10 @@ int map_parse_line_cb(int n, char* buf, void* arg)
193 193
194 struct map_parse_args* args = arg; 194 struct map_parse_args* args = arg;
195 195
196 /* skip whitespace */
197 while(*buf && isspace(*buf))
198 ++buf;
199
196 /* ignore comments and blank lines */ 200 /* ignore comments and blank lines */
197 if(*buf == '#' || *buf == '\0') 201 if(*buf == '#' || *buf == '\0')
198 return 0; 202 return 0;