diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2003-10-18 20:35:37 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2003-10-18 20:35:37 +0000 |
commit | 5a5ce3cfe1622e03baf86ad1396d0c9e3c3e2cad (patch) | |
tree | 31e29032e9fb13aeea978dbce84dd554193de44d /usr.bin/bc/scan.l | |
parent | 30ae1fa6ae37f74f52225143403f4e3b3aa3f2fd (diff) |
err(1, "cannot allocate mem") -> err(1, NULL)
Diffstat (limited to 'usr.bin/bc/scan.l')
-rw-r--r-- | usr.bin/bc/scan.l | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/bc/scan.l b/usr.bin/bc/scan.l index 598ab015426..541b814e97c 100644 --- a/usr.bin/bc/scan.l +++ b/usr.bin/bc/scan.l @@ -1,5 +1,5 @@ %{ -/* $OpenBSD: scan.l,v 1.8 2003/10/18 19:57:10 otto Exp $ */ +/* $OpenBSD: scan.l,v 1.9 2003/10/18 20:35:36 otto Exp $ */ /* * Copyright (c) 2003, Otto Moerbeek <otto@drijf.net> @@ -18,7 +18,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: scan.l,v 1.8 2003/10/18 19:57:10 otto Exp $"; +static const char rcsid[] = "$OpenBSD: scan.l,v 1.9 2003/10/18 20:35:36 otto Exp $"; #endif /* not lint */ #include <err.h> @@ -172,7 +172,7 @@ init_strbuf(void) if (strbuf == NULL) { strbuf = malloc(strbuf_sz); if (strbuf == NULL) - err(1, "cannot allocate string buffer"); + err(1, NULL); } strbuf[0] = '\0'; } @@ -192,7 +192,7 @@ add_str(const char *str) p = realloc(strbuf, newsize); if (p == NULL) { free(strbuf); - err(1, "cannot realloc string buffer"); + err(1, NULL); } strbuf_sz = newsize; strbuf = p; |