From a88e61a6e037ef2ee20c631160b36e568493d09b Mon Sep 17 00:00:00 2001 From: Simon Wells Date: Mon, 11 Jan 2016 17:12:49 -0500 Subject: [PATCH] Fix uninitialized variable in PCBNEW_CONTROL::CursorControl --- pcbnew/tools/pcbnew_control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/tools/pcbnew_control.cpp b/pcbnew/tools/pcbnew_control.cpp index a84dc6ff6f..f96ff9e14b 100644 --- a/pcbnew/tools/pcbnew_control.cpp +++ b/pcbnew/tools/pcbnew_control.cpp @@ -479,7 +479,7 @@ int PCBNEW_CONTROL::CursorControl( const TOOL_EVENT& aEvent ) case COMMON_ACTIONS::CURSOR_CLICK: // fall through case COMMON_ACTIONS::CURSOR_DBL_CLICK: { - TOOL_ACTIONS action; + TOOL_ACTIONS action = TA_NONE; int modifiers = 0; modifiers |= wxGetKeyState( WXK_SHIFT ) ? MD_SHIFT : 0;