Fix a typo. q is already a pointer.
Reported by: ache Pointy hat to: kib
This commit is contained in:
parent
e416d53f44
commit
d2358aab51
@ -133,7 +133,7 @@ __xuname(int namesize, void *namebuf)
|
|||||||
mib[1] = HW_MACHINE;
|
mib[1] = HW_MACHINE;
|
||||||
len = namesize;
|
len = namesize;
|
||||||
oerrno = errno;
|
oerrno = errno;
|
||||||
if (sysctl(mib, 2, &q, &len, NULL, 0) == -1) {
|
if (sysctl(mib, 2, q, &len, NULL, 0) == -1) {
|
||||||
if (errno == ENOMEM)
|
if (errno == ENOMEM)
|
||||||
errno = oerrno;
|
errno = oerrno;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user