Don't use NULL where you really mean 0 to sysctlbyname.

This commit is contained in:
imp 2002-08-21 15:15:15 +00:00
parent 842f45255d
commit 9a400152f8

View File

@ -213,7 +213,7 @@ list(const int fd)
err(1, "sysctlbyname: kern.disks");
if ( (disklist = malloc(dll)) == NULL)
err(1, "malloc");
if (sysctlbyname("kern.disks", disklist, &dll, NULL, NULL) == -1)
if (sysctlbyname("kern.disks", disklist, &dll, NULL, 0) == -1)
err(1, "sysctlbyname: kern.disks");
for (p = disklist;