summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2012-02-04 16:32:37 +0000
committerKris <Kris.De.Gussem@hotmail.com>2012-02-04 16:32:37 +0000
commitac197253a0190619eea148872c83be36e2fc8750 (patch)
treeeacd56883fb19298df9880f3b13ccdba36be1a32 /src
parentcppcheck tells us: scanf without field width limits can crash with huge input... (diff)
downloadinkscape-ac197253a0190619eea148872c83be36e2fc8750.tar.gz
inkscape-ac197253a0190619eea148872c83be36e2fc8750.zip
initialisation
(bzr r10933)
Diffstat (limited to 'src')
-rw-r--r--src/extension/internal/latex-pstricks.cpp25
-rw-r--r--src/extension/internal/pdfinput/pdf-parser.cpp1
2 files changed, 12 insertions, 14 deletions
diff --git a/src/extension/internal/latex-pstricks.cpp b/src/extension/internal/latex-pstricks.cpp
index 72eeaed50..cc012c8b0 100644
--- a/src/extension/internal/latex-pstricks.cpp
+++ b/src/extension/internal/latex-pstricks.cpp
@@ -15,33 +15,30 @@
#endif
-#include <signal.h>
-#include <errno.h>
-
#include <2geom/pathvector.h>
#include <2geom/sbasis-to-bezier.h>
#include <2geom/bezier-curve.h>
#include <2geom/hvlinesegment.h>
-#include "helper/geom-curves.h"
-
-#include "sp-item.h"
-
-#include "style.h"
-
-#include "latex-pstricks.h"
-
+#include <errno.h>
+#include <signal.h>
#include <unit-constants.h>
+#include "helper/geom-curves.h"
-#include "extension/system.h"
#include "extension/print.h"
-
+#include "extension/system.h"
#include "io/sys.h"
+#include "latex-pstricks.h"
+#include "sp-item.h"
+#include "style.h"
namespace Inkscape {
namespace Extension {
namespace Internal {
-PrintLatex::PrintLatex (void): _stream(NULL)
+PrintLatex::PrintLatex (void):
+ _width(0),
+ _height(0),
+ _stream(NULL)
{
}
diff --git a/src/extension/internal/pdfinput/pdf-parser.cpp b/src/extension/internal/pdfinput/pdf-parser.cpp
index 5bdc4f9c1..937736630 100644
--- a/src/extension/internal/pdfinput/pdf-parser.cpp
+++ b/src/extension/internal/pdfinput/pdf-parser.cpp
@@ -318,6 +318,7 @@ PdfParser::PdfParser(XRef *xrefA, Inkscape::Extension::Internal::SvgBuilder *bui
Dict *resDict, PDFRectangle *box) {
int i;
+ parser = NULL;
xref = xrefA;
subPage = gTrue;