From 9f0d9b7719f856091fb2c1bd8babadf9af0f5501 Mon Sep 17 00:00:00 2001 From: rwst Date: Fri, 30 Jun 2006 10:34:36 +0000 Subject: [PATCH] fix bug where a Glib::ustring was compared to NULL which prevented an error message from being shown (see #1512876) --- src/extension/implementation/script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. " -- 2.30.2