Skip to content

Commit

Permalink
external/ffspart: Allow # comments in input file
Browse files Browse the repository at this point in the history
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
cyrilbur-ibm authored and stewartsmith committed Apr 9, 2018
1 parent 6c53bb6 commit 267e653
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions external/ffspart/ffspart.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,10 @@ int main(int argc, char *argv[])
int side = -1;
uint32_t pbase, psize, pactual = 0;

/* Inline comments in input file */
if (line[0] == '#')
continue;

if (line[strlen(line) - 1] == '\n')
line[strlen(line) - 1] = '\0';

Expand Down

0 comments on commit 267e653

Please sign in to comment.