From 1c253bfba0dd3998c8d13c1d93def2092825251f Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 24 Feb 2014 11:17:49 +0100 Subject: [PATCH] Some variables initialized to NULL. --- common/gal/opengl/opengl_compositor.cpp | 2 +- pcbnew/tools/drawing_tool.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/gal/opengl/opengl_compositor.cpp b/common/gal/opengl/opengl_compositor.cpp index af7b52ba5b..3a6721e5c9 100644 --- a/common/gal/opengl/opengl_compositor.cpp +++ b/common/gal/opengl/opengl_compositor.cpp @@ -17,7 +17,7 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, you may find one here: * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html - * or you may search the http:O//www.gnu.org website for the version 2 license, + * or you may search the http://www.gnu.org website for the version 2 license, * or you may write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ diff --git a/pcbnew/tools/drawing_tool.cpp b/pcbnew/tools/drawing_tool.cpp index b3ea0c6a3a..a1eddfca16 100644 --- a/pcbnew/tools/drawing_tool.cpp +++ b/pcbnew/tools/drawing_tool.cpp @@ -84,7 +84,7 @@ int DRAWING_TOOL::DrawArc( TOOL_EVENT& aEvent ) double startAngle; // angle of the first arc line VECTOR2I cursorPos = m_controls->GetCursorPosition(); - DRAWSEGMENT* arc; + DRAWSEGMENT* arc = NULL; DRAWSEGMENT helperLine; helperLine.SetShape( S_SEGMENT ); helperLine.SetLayer( DRAW_N ); @@ -374,7 +374,7 @@ int DRAWING_TOOL::DrawText( TOOL_EVENT& aEvent ) int DRAWING_TOOL::DrawDimension( TOOL_EVENT& aEvent ) { - DIMENSION* dimension; + DIMENSION* dimension = NULL; int width, maxThickness; // Add a VIEW_GROUP that serves as a preview for the new item @@ -922,9 +922,9 @@ int DRAWING_TOOL::drawSegment( int aShape, bool aContinous ) int DRAWING_TOOL::drawZone( bool aKeepout ) { - ZONE_CONTAINER* zone; + ZONE_CONTAINER* zone = NULL; DRAWSEGMENT line45; - DRAWSEGMENT* helperLine; // we will need more than one helper line + DRAWSEGMENT* helperLine = NULL; // we will need more than one helper line // Add a VIEW_GROUP that serves as a preview for the new item KIGFX::VIEW_GROUP preview( m_view );