From 6222b7e63a231f2de088095629bc5ee695fa39b0 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 27 Dec 2004 18:50:00 +0000 Subject: Whoops... --- lib/Exceptions.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 #include @@ -115,6 +115,10 @@ int Exit::GetCode() { char * xstrdup(const char * s) { char * r; + + if (!s) { + return xstrdup(""); + } r = (char *) xmalloc(strlen(s) + 1); strcpy(r, s); -- cgit v1.2.3