Code

Fixed crash due to use of uninitialized pointer
authorjoncruz <joncruz@users.sourceforge.net>
Thu, 28 Aug 2008 11:59:25 +0000 (11:59 +0000)
committerjoncruz <joncruz@users.sourceforge.net>
Thu, 28 Aug 2008 11:59:25 +0000 (11:59 +0000)
src/extension/internal/cairo-render-context.cpp

index 13302831e510996e3806b539befbb19c9c0bf9f6..747054c7f7ffc3d8a70e61092d4509d449deebc0 100644 (file)
@@ -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;
 }