summaryrefslogtreecommitdiff
path: root/usr.bin/dc/stack.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2003-10-18 20:34:27 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2003-10-18 20:34:27 +0000
commit30ae1fa6ae37f74f52225143403f4e3b3aa3f2fd (patch)
tree263deb1348cffa39fcd34a9347f7a0a654356f89 /usr.bin/dc/stack.c
parenta73bcea2b40878486db3c230136d7a82852e99a9 (diff)
err(1, "out of mem") -> err(1, NULL)
Diffstat (limited to 'usr.bin/dc/stack.c')
-rw-r--r--usr.bin/dc/stack.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/dc/stack.c b/usr.bin/dc/stack.c
index c35fb6a7fbb..d700b787677 100644
--- a/usr.bin/dc/stack.c
+++ b/usr.bin/dc/stack.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: stack.c,v 1.3 2003/09/28 19:29:33 otto Exp $ */
+/* $OpenBSD: stack.c,v 1.4 2003/10/18 20:34:26 otto Exp $ */
/*
* Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
@@ -17,7 +17,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: stack.c,v 1.3 2003/09/28 19:29:33 otto Exp $";
+static const char rcsid[] = "$OpenBSD: stack.c,v 1.4 2003/10/18 20:34:26 otto Exp $";
#endif /* not lint */
#include <err.h>
@@ -87,7 +87,7 @@ stack_dup_value(const struct value *a, struct value *copy)
case BCODE_STRING:
copy->u.string = strdup(a->u.string);
if (copy->u.string == NULL)
- err(1, "cannot dup string");
+ err(1, NULL);
break;
}