From 144aa0f7a729a36c2b9d8b7d0147b712f4c87ee9 Mon Sep 17 00:00:00 2001 From: joncruz Date: Thu, 28 Aug 2008 11:59:25 +0000 Subject: [PATCH] Fixed crash due to use of uninitialized pointer --- src/extension/internal/cairo-render-context.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/extension/internal/cairo-render-context.cpp b/src/extension/internal/cairo-render-context.cpp index 13302831e..747054c7f 100644 --- a/src/extension/internal/cairo-render-context.cpp +++ b/src/extension/internal/cairo-render-context.cpp @@ -1250,9 +1250,9 @@ bool CairoRenderContext::renderPathVector(Geom::PathVector const & pathv, SPStyle const *style, NRRect const *pbox) { NArtBpath * bpath = BPath_from_2GeomPath (pathv); - const_NRBPath *bp; - bp->path = bpath; - bool retvalue = renderPath(bp, style, pbox); + const_NRBPath bp; + bp.path = bpath; + bool retvalue = renderPath(&bp, style, pbox); g_free(bpath); return retvalue; } -- 2.30.2