summaryrefslogtreecommitdiffstats
path: root/src/cryptenroll
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-12-25 12:01:32 +0100
committerGitHub <noreply@github.com>2023-12-25 12:01:32 +0100
commit287a5f1cffb25e125eea978e991e76a511decd26 (patch)
treec19987e58926dfb9590fb8e3a76fac993c604497 /src/cryptenroll
parentMerge pull request #30616 from dtardon/docbook-valid-2 (diff)
parentcore,format-table: use strna/ersatz for formatting fdstore dump (diff)
downloadsystemd-287a5f1cffb25e125eea978e991e76a511decd26.tar.xz
systemd-287a5f1cffb25e125eea978e991e76a511decd26.zip
Merge pull request #30628 from YHNdnzj/format-table-improvement
Some improvements for format-table
Diffstat (limited to 'src/cryptenroll')
-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 d21df7123b..00a1a8e637 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;
}