mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
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.
This commit is contained in:
parent
a58b3a6878
commit
05018c64fd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99572
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user