bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnubg] bug: use of uninitialized value at set.c:CommandSetFullScree


From: Daisuke Takahashi
Subject: [Bug-gnubg] bug: use of uninitialized value at set.c:CommandSetFullScreen
Date: Sun, 13 Jul 2014 13:04:42 +0900

Hi all,

The valgrind indicates the use of newValue without initialization at the 
function CommandSetFullScreen. Here is a diff to fix it.
Thank you very much.

Regards,
Daisuke Takahashi

--- set.orig.c  2014-07-13 12:56:38.000000000 +0900
+++ set.c       2014-07-13 12:57:34.000000000 +0900
@@ -429,7 +429,7 @@
 extern void
 CommandSetFullScreen(char *sz)
 {
-    int newValue;
+    int newValue = fFullScreen;
     SetToggle("fullscreen", &newValue, sz, _("Show board in full screen 
mode"), _("Show board in normal screen mode."));
 
     if (newValue != fFullScreen) {      /* Value has changed */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]