From 621e07d7f94bc806b259d0d662b1d3ecb9fa4778 Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Fri, 20 Jan 2012 21:12:10 +0100 Subject: cppcheck tells us: "Possible null pointer dereference: _stream - otherwise it is redundant to check if _stream is null at line 105" Cannot check code on linux, but when you should get here _stream should be not NULL (if I interpreted correctly) (bzr r10913) --- src/extension/internal/latex-pstricks.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/extension/internal/latex-pstricks.cpp b/src/extension/internal/latex-pstricks.cpp index 1d36d9456..4b8d926f9 100644 --- a/src/extension/internal/latex-pstricks.cpp +++ b/src/extension/internal/latex-pstricks.cpp @@ -101,12 +101,10 @@ unsigned int PrintLatex::begin (Inkscape::Extension::Print *mod, SPDocument *doc g_free(local_fn); - if (_stream) { - /* fixme: this is kinda icky */ + /* fixme: this is kinda icky */ #if !defined(_WIN32) && !defined(__WIN32__) - (void) signal(SIGPIPE, SIG_IGN); + (void) signal(SIGPIPE, SIG_IGN); #endif - } res = fprintf(_stream, "%%LaTeX with PSTricks extensions\n"); /* flush this to test output stream as early as possible */ -- cgit v1.2.3