diff options
author | tjr <tjr@FreeBSD.org> | 2002-07-08 05:36:24 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-07-08 05:36:24 +0000 |
commit | ae7a40f1aa24f59932fee8f35e2061a6a5d0c706 (patch) | |
tree | 0407e330070809dbbd912b97bb212d791c503d2d /usr.bin/sed | |
parent | 62e40d1277fdd1a346ff9f3f25a2ea493d6361ae (diff) | |
download | FreeBSD-src-ae7a40f1aa24f59932fee8f35e2061a6a5d0c706.zip FreeBSD-src-ae7a40f1aa24f59932fee8f35e2061a6a5d0c706.tar.gz |
Silence WARNS=4 by passing a non-const buffer to regerror(). Since it
doesn't actually use the buffer when errbuf_size == 0, pass NULL.
Diffstat (limited to 'usr.bin/sed')
-rw-r--r-- | usr.bin/sed/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/sed/misc.c b/usr.bin/sed/misc.c index dbe7b5d..e04eae9 100644 --- a/usr.bin/sed/misc.c +++ b/usr.bin/sed/misc.c @@ -68,7 +68,7 @@ strregerror(errcode, preg) if (oe != NULL) free(oe); - s = regerror(errcode, preg, "", 0); + s = regerror(errcode, preg, NULL, 0); if ((oe = malloc(s)) == NULL) err(1, "malloc"); (void)regerror(errcode, preg, oe, s); |