[ros-diffs] [arty] 36423: Initialize DbgLoadOptions from the start. It would be unitialized if a bootcd was made without having the right section in txtsetup.sif.
arty at svn.reactos.org
arty at svn.reactos.org
Tue Sep 23 11:36:23 CEST 2008
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/reactos/setupldr.c?rev=36423&r1=36422&r2=36423&view=diff
==============================================================================
--- 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",
More information about the Ros-diffs
mailing list