aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-08-08 09:09:15 +0200
committerMax Kellermann <max@duempel.org>2012-08-08 09:27:42 +0200
commitb4b1728b6f673c398205d078c4935166ab31eb0c (patch)
treee894a915ad27393e68de441bb6a9469c1079fe90 /src/command.c
parent21792386d835903d2f9e2d04a1860d60bb8488e2 (diff)
downloadmpd-b4b1728b6f673c398205d078c4935166ab31eb0c.tar.gz
mpd-b4b1728b6f673c398205d078c4935166ab31eb0c.tar.xz
mpd-b4b1728b6f673c398205d078c4935166ab31eb0c.zip
DatabasePrint: don't print Last-Modified if unknown
Diffstat (limited to '')
-rw-r--r--src/command.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index 0856589b0..7bb49447d 100644
--- a/src/command.c
+++ b/src/command.c
@@ -119,7 +119,8 @@ print_spl_list(struct client *client, GPtrArray *list)
client_printf(client, "playlist: %s\n", playlist->name);
- time_print(client, "Last-Modified", playlist->mtime);
+ if (playlist->mtime > 0)
+ time_print(client, "Last-Modified", playlist->mtime);
}
}