aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/config.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 6bb6efb..44eaf3f 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -51,6 +51,7 @@ where
let strings = Vec::<String>::deserialize(d).map_err(D::Error::custom)?;
let result = strings
.iter()
+ .filter(|s| !s.is_empty())
.map(|s| nitrokey::SerialNumber::from_str(s))
.collect::<Result<_, _>>();
result.map_err(D::Error::custom)