Author: arty Date: Tue Sep 23 04:36:23 2008 New Revision: 36423
URL: http://svn.reactos.org/svn/reactos?rev=36423&view=rev Log: Initialize DbgLoadOptions from the start. It would be unitialized if a bootcd was made without having the right section in txtsetup.sif.
Modified: trunk/reactos/boot/freeldr/freeldr/reactos/setupldr.c
Modified: trunk/reactos/boot/freeldr/freeldr/reactos/setupldr.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/reacto... ============================================================================== --- trunk/reactos/boot/freeldr/freeldr/reactos/setupldr.c [iso-8859-1] (original) +++ trunk/reactos/boot/freeldr/freeldr/reactos/setupldr.c [iso-8859-1] Tue Sep 23 04:36:23 2008 @@ -46,7 +46,7 @@ { ULONG i; LPCSTR SourcePath; - LPCSTR LoadOptions, DbgLoadOptions; + LPCSTR LoadOptions, DbgLoadOptions = ""; LPCSTR sourcePaths[] = { "", /* Only for floppy boot */ #if defined(_M_IX86) @@ -153,8 +153,6 @@ if (!InfGetDataField (&InfContext, 1, &DbgLoadOptions)) DbgLoadOptions = ""; } -#else - DbgLoadOptions = ""; #endif if (!strlen(DbgLoadOptions) && !InfFindFirstLine (InfHandle, "SetupData",