From 99f3a239d75aff5eb81527d1fda101a35cc99130 Mon Sep 17 00:00:00 2001 From: Art Yerkes Date: Tue, 23 Sep 2008 09:36:23 +0000 Subject: [PATCH] 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 --- reactos/boot/freeldr/freeldr/reactos/setupldr.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/reactos/boot/freeldr/freeldr/reactos/setupldr.c b/reactos/boot/freeldr/freeldr/reactos/setupldr.c index 3901f321b7f..3b371639e71 100644 --- a/reactos/boot/freeldr/freeldr/reactos/setupldr.c +++ b/reactos/boot/freeldr/freeldr/reactos/setupldr.c @@ -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",