summaryrefslogtreecommitdiffstats
path: root/src/cryptenroll/cryptenroll-list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cryptenroll/cryptenroll-list.c')
-rw-r--r--src/cryptenroll/cryptenroll-list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptenroll/cryptenroll-list.c b/src/cryptenroll/cryptenroll-list.c
index d21df71..00a1a8e 100644
--- a/src/cryptenroll/cryptenroll-list.c
+++ b/src/cryptenroll/cryptenroll-list.c
@@ -114,7 +114,7 @@ int list_enrolled(struct crypt_device *cd) {
return table_log_add_error(r);
}
- if (table_get_rows(t) <= 1) {
+ if (table_isempty(t)) {
log_info("No slots found.");
return 0;
}