aboutsummaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2025-02-06 10:56:21 +0100
committerdefault <nobody@localhost>2025-02-06 10:56:21 +0100
commit22a23dbdd1fca4695c012c31d5e5502f38212ed8 (patch)
treec96d2ddafca94527f536398b4c5e44eb44211d54 /data.c
parent2bfbe6215f849c1b8af3df88d33e34dcc572844c (diff)
Minor tweak to inbox_list().
Diffstat (limited to 'data.c')
-rw-r--r--data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/data.c b/data.c
index 2f1a52b..9fc54a0 100644
--- a/data.c
+++ b/data.c
@@ -2601,7 +2601,7 @@ xs_list *inbox_list(void)
if ((f = fopen(v, "r")) != NULL) {
xs *line = xs_readline(f);
- if (line) {
+ if (line && *line) {
line = xs_strip_i(line);
ibl = xs_list_append(ibl, line);
}