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

This commit is contained in:
Warner Losh 2002-08-21 15:15:15 +00:00
parent 8eed22b1a6
commit 9d010543f4

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;