Fixes Coverity defect #30471
Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com>
{
struct autoboot_option *opt, *new = NULL;
char *pos, *end, *old_dev = NULL;
{
struct autoboot_option *opt, *new = NULL;
char *pos, *end, *old_dev = NULL;
- const char delim = ' ';
unsigned int n_new = 0;
const char *val;
bool conflict;
unsigned int n_new = 0;
const char *val;
bool conflict;
if (read_bootdev(config, &pos, opt)) {
pb_log("bootdev config is in an unknown format "
if (read_bootdev(config, &pos, opt)) {
pb_log("bootdev config is in an unknown format "
- "(expected uuid:... or mac:...)");
+ "(expected uuid:... or mac:...)\n");
- if (strchr(pos, delim))
- continue;
- return;
}
new = talloc_realloc(config, new, struct autoboot_option,
}
new = talloc_realloc(config, new, struct autoboot_option,