From 28b34f3caf7f5af5066425f067e935149c901230 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 17 Dec 2015 05:52:03 +0200 Subject: [PATCH] imap: Make static analyzer happier. --- src/imap/imap-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imap/imap-client.c b/src/imap/imap-client.c index a6bc1de63e..bf75439f73 100644 --- a/src/imap/imap-client.c +++ b/src/imap/imap-client.c @@ -292,7 +292,7 @@ static const char *client_get_commands_status(struct client *client) bytes_out += cmd->bytes_out; last_cmd = cmd; } - if (str_len(str) <= 2) + if (last_cmd == NULL) return ""; cond = io_loop_find_fd_conditions(current_ioloop, client->fd_out); -- 2.47.3