diff options
Diffstat (limited to 'lib/libdevstat/devstat.c')
-rw-r--r-- | lib/libdevstat/devstat.c | 2 |
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); /* |