From 4ded9bd641336ba691f4e329531b9235c6f22eec Mon Sep 17 00:00:00 2001 From: cilix42 Date: Wed, 13 Aug 2008 14:54:37 +0000 Subject: [PATCH] Initialize the pointer variables in draw-context with NULL, just to be on the safe side --- src/draw-context.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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(); -- 2.30.2