From 7751039569c013a2f3d8f8913a4399aeff3ede02 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Wed, 13 Aug 2008 14:54:37 +0000 Subject: Initialize the pointer variables in draw-context with NULL, just to be on the safe side (bzr r6614) --- src/draw-context.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/draw-context.cpp') diff --git a/src/draw-context.cpp b/src/draw-context.cpp index 7bf01829d..97fcb7be6 100644 --- a/src/draw-context.cpp +++ b/src/draw-context.cpp @@ -116,6 +116,24 @@ sp_draw_context_init(SPDrawContext *dc) dc->green_color = 0x00ff007f; dc->red_curve_is_valid = false; + dc->red_bpath = NULL; + dc->red_curve = NULL; + + dc->blue_bpath = NULL; + dc->blue_curve = NULL; + + dc->green_bpaths = NULL; + dc->green_curve = NULL; + dc->green_anchor = NULL; + dc->green_closed = false; + + dc->white_item = NULL; + dc->white_curves = NULL; + dc->white_anchors = NULL; + + dc->sa = NULL; + dc->ea = NULL; + dc->waiting_LPE_type = Inkscape::LivePathEffect::INVALID_LPE; new (&dc->sel_changed_connection) sigc::connection(); -- cgit v1.2.3