Initialize DbgLoadOptions from the start. It would be unitialized if a bootcd

was made without having the right section in txtsetup.sif.

svn path=/trunk/; revision=36423
This commit is contained in:
Art Yerkes
2008-09-23 09:36:23 +00:00
parent 5a637c03db
commit 99f3a239d7
@@ -46,7 +46,7 @@ VOID RunLoader(VOID)
{
ULONG i;
LPCSTR SourcePath;
LPCSTR LoadOptions, DbgLoadOptions;
LPCSTR LoadOptions, DbgLoadOptions = "";
LPCSTR sourcePaths[] = {
"", /* Only for floppy boot */
#if defined(_M_IX86)
@@ -153,8 +153,6 @@ VOID RunLoader(VOID)
if (!InfGetDataField (&InfContext, 1, &DbgLoadOptions))
DbgLoadOptions = "";
}
#else
DbgLoadOptions = "";
#endif
if (!strlen(DbgLoadOptions) && !InfFindFirstLine (InfHandle,
"SetupData",