X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=devices%2Fkboot-parser.c;h=448575929abc1fa9e7e3cefbe13ab4a64dbc9f59;hp=b845d8498779184a5bbe576f9c7c45161838fab0;hb=fd3ec2d5f95590cf5fbfe065a8334b90e5fbde75;hpb=1a73b890cfdc3c4971311e5ae737074498e9ff99;ds=sidebyside diff --git a/devices/kboot-parser.c b/devices/kboot-parser.c index b845d84..4485759 100644 --- a/devices/kboot-parser.c +++ b/devices/kboot-parser.c @@ -171,6 +171,9 @@ static void parse_buf(struct device *dev, char *buf) if (name == NULL || param_is_ignored(name)) continue; + if (*name == '#') + continue; + memset(&opt, 0, sizeof(opt)); opt.name = strdup(name);