bootspec: fix debug message about default entry
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 7 Dec 2017 05:21:13 +0000 (14:21 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 7 Dec 2017 05:50:49 +0000 (14:50 +0900)
commit5838493a3aaa7be688e56b65d13b343cc1336d8c
treeec69e808a6c79e4a176495b842aabd938e17d3e4
parentdd014eebfb05f384043d4b135ac53940721427c5
bootspec: fix debug message about default entry

When no entries matches with entry_oneshot, entry_default and
default_pattern, then log message shows a wrong entry.
Moreover, if none of entry_oneshot, entry_default and default_pattern
are set, then the index `i` is uninitialized.
This fixes such problem.
src/shared/bootspec.c