From 3a9192e85fbb252b1d2d899788140845e8db28ea Mon Sep 17 00:00:00 2001 From: Ralf Stephan Date: Fri, 30 Jun 2006 10:34:36 +0000 Subject: fix bug where a Glib::ustring was compared to NULL which prevented an error message from being shown (see #1512876) (bzr r1328) --- src/extension/implementation/script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/extension/implementation/script.cpp') diff --git a/src/extension/implementation/script.cpp b/src/extension/implementation/script.cpp index 908ac23b7..9892e897f 100644 --- a/src/extension/implementation/script.cpp +++ b/src/extension/implementation/script.cpp @@ -989,7 +989,7 @@ Script::execute (const Glib::ustring &in_command, } else if (errno == ECHILD) { perror("Extension::Script: Could not obtain child status for pclose\n"); } else { - if (errorFile != NULL) { + if (!errorFile.empty()) { checkStderr(errorFile, Gtk::MESSAGE_ERROR, _("Inkscape has received an error from the script that it called. " "The text returned with the error is included below. " -- cgit v1.2.3