From: rwst Date: Fri, 30 Jun 2006 10:34:36 +0000 (+0000) Subject: fix bug where a Glib::ustring was compared to NULL which prevented an error message... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9f0d9b7719f856091fb2c1bd8babadf9af0f5501;p=inkscape.git fix bug where a Glib::ustring was compared to NULL which prevented an error message from being shown (see #1512876) --- 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. "