Code

fix bug where a Glib::ustring was compared to NULL which prevented an error message...
authorrwst <rwst@users.sourceforge.net>
Fri, 30 Jun 2006 10:34:36 +0000 (10:34 +0000)
committerrwst <rwst@users.sourceforge.net>
Fri, 30 Jun 2006 10:34:36 +0000 (10:34 +0000)
src/extension/implementation/script.cpp

index 908ac23b7668385b75ecdd0be28e7ce56cdd5035..9892e897fc1e935e7e006390dae7a84d066645ed 100644 (file)
@@ -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.  "