summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-08-17 12:06:44 +0000
committerphk <phk@FreeBSD.org>2003-08-17 12:06:44 +0000
commitafe46bebc0b79971c2b6f9399443f3898a56f685 (patch)
treed9f5973696b42ea2d7b08288860f16082139faec /lib
parentba5950210ceb7ef6fdee168811c8bed7f87fb095 (diff)
downloadFreeBSD-src-afe46bebc0b79971c2b6f9399443f3898a56f685.zip
FreeBSD-src-afe46bebc0b79971c2b6f9399443f3898a56f685.tar.gz
It is not an error to have no devices.
Diffstat (limited to 'lib')
-rw-r--r--lib/libdevstat/devstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libdevstat/devstat.c b/lib/libdevstat/devstat.c
index aa63537..2522755 100644
--- a/lib/libdevstat/devstat.c
+++ b/lib/libdevstat/devstat.c
@@ -549,7 +549,7 @@ devstat_selectdevs(struct device_selection **dev_select, int *num_selected,
int selection_number = 0;
int changed = 0, found = 0;
- if ((dev_select == NULL) || (devices == NULL) || (numdevs <= 0))
+ if ((dev_select == NULL) || (devices == NULL) || (numdevs < 0))
return(-1);
/*
OpenPOWER on IntegriCloud