summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Exceptions.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Exceptions.cc b/lib/Exceptions.cc
index 39869db..a6cfc54 100644
--- a/lib/Exceptions.cc
+++ b/lib/Exceptions.cc
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: Exceptions.cc,v 1.36 2004-12-12 23:01:08 pixel Exp $ */
+/* $Id: Exceptions.cc,v 1.37 2004-12-27 18:50:00 pixel Exp $ */
#include <string.h>
#include <errno.h>
@@ -115,6 +115,10 @@ int Exit::GetCode() {
char * xstrdup(const char * s) {
char * r;
+
+ if (!s) {
+ return xstrdup("<NULL-xstrdup>");
+ }
r = (char *) xmalloc(strlen(s) + 1);
strcpy(r, s);