blspec: Do not crash on config files without newline on last line
When the last line in a config file has no newline then 'next' is NULL
on the the loop iteration. Check that before derefencing 'next'.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 0fe011b commit 0aae1dc98cf1b0c858e630448a1ec59d69bcec9d
@Sascha Hauer Sascha Hauer authored on 11 Feb 2016
Showing 1 changed file
View
common/blspec.c