]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
At least one version of gcc won't figure out that "clear" is never
authorSimon Tatham <anakin@pobox.com>
Thu, 17 Jul 2008 17:01:27 +0000 (17:01 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 17 Jul 2008 17:01:27 +0000 (17:01 +0000)
read uninitialised (because the only circumstance under which it
isn't initialised is when "update" is FALSE, in which case it isn't
read either). Placate it.

[originally from svn r8119]

config.c

index 8be448e8e86cce11e56b5bbe33a91b1401c7e93f..85e13c2e8dbca58d635b99c7532f32f44097d357 100644 (file)
--- a/config.c
+++ b/config.c
@@ -623,7 +623,7 @@ static void colour_handler(union control *ctrl, void *dlg,
     Config *cfg = (Config *)data;
     struct colour_data *cd =
        (struct colour_data *)ctrl->generic.context.p;
-    int update = FALSE, clear, r, g, b;
+    int update = FALSE, clear = FALSE, r, g, b;
 
     if (event == EVENT_REFRESH) {
        if (ctrl == cd->listbox) {