Hello community,
here is the log from the commit of package dosbox
checked in at Tue Jun 27 17:14:59 CEST 2006.
--------
--- dosbox/dosbox.changes 2006-05-08 17:40:41.000000000 +0200
+++ dosbox/dosbox.changes 2006-06-27 15:56:05.000000000 +0200
@@ -1,0 +2,5 @@
+Tue Jun 27 15:55:43 CEST 2006 - lnussel@suse.de
+
+- fix use of uninitialized variables (#188290)
+
+-------------------------------------------------------------------
New:
----
dosbox-0.65-uninitialized.diff
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ dosbox.spec ++++++
--- /var/tmp/diff_new_pack.rANWDm/_old 2006-06-27 17:13:15.000000000 +0200
+++ /var/tmp/diff_new_pack.rANWDm/_new 2006-06-27 17:13:15.000000000 +0200
@@ -16,12 +16,13 @@
License: GPL
Group: System/Emulators/PC
Version: 0.65
-Release: 1
+Release: 2
Summary: DOS Emulator Well-Suited for Playing Games
Source: dosbox-0.65.tar.gz
Source1: dosbox.desktop
Source2: dosbox.png
Patch: dosbox-0.61-manpage.diff
+Patch1: dosbox-0.65-uninitialized.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@@ -41,6 +42,7 @@
rm -rf %{buildroot}
%setup
%patch -p1
+%patch1 -p1
%build
autoreconf -f -i
@@ -78,6 +80,8 @@
%endif
%changelog -n dosbox
+* Tue Jun 27 2006 - lnussel@suse.de
+- fix use of uninitialized variables (#188290)
* Mon May 08 2006 - lnussel@suse.de
- new version 0.65
* 4/15/16/32bpp VESA mode support
++++++ dosbox-0.65-uninitialized.diff ++++++
Index: dosbox-0.65/src/gui/sdlmain.cpp
===================================================================
--- dosbox-0.65.orig/src/gui/sdlmain.cpp
+++ dosbox-0.65/src/gui/sdlmain.cpp
@@ -380,7 +380,7 @@ Bitu GFX_SetSize(Bitu width,Bitu height,
sdl.draw.scaley=scaley;
Bitu bpp;
- Bitu retFlags;
+ Bitu retFlags = 0;
if (sdl.blit.surface) {
SDL_FreeSurface(sdl.blit.surface);
Index: dosbox-0.65/src/hardware/sblaster.cpp
===================================================================
--- dosbox-0.65.orig/src/hardware/sblaster.cpp
+++ dosbox-0.65/src/hardware/sblaster.cpp
@@ -1189,7 +1189,7 @@ public:
sb.mixer.enabled=section->Get_bool("mixer");
Bitu oplrate=section->Get_int("oplrate");
sb.mixer.stereo=false;
- OPL_Mode opl_mode;
+ OPL_Mode opl_mode = OPL_none;
Find_Type_And_Opl(section,sb.type,opl_mode);
switch (opl_mode) {
@@ -1240,7 +1240,7 @@ public:
~SBLASTER() {
Section_prop * section=static_cast