summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorpixel <pixel>2004-12-27 18:50:00 +0000
committerpixel <pixel>2004-12-27 18:50:00 +0000
commit6222b7e63a231f2de088095629bc5ee695fa39b0 (patch)
tree35657029b323f6ecbeb4bb66e808290c5d63cdb0 /lib
parent145b69a74f91e33b5ae413eb9bc6c5402d7ca8f6 (diff)
Whoops...
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);