cmdlinepart: Allow empty string
Currently when cmdlinepart_do_parse() is called with an empty
partitions string then an unnamed partition with size 0 is created.
This is wrong of course and instead no partition should be
created.

With this barebox no longer crashes while booting when all partitions
are deleted on the commandline using "nand0.partitions="

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 49b5c5a commit 4c7b877a5c90bcf80d42086d246981f0686d1e27
@Sascha Hauer Sascha Hauer authored on 9 Jul 2018
Showing 1 changed file
View
lib/cmdlinepart.c