From 65dd81f1059ee74e1e46b7c069bf8789ba114705 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 11 May 2004 00:27:54 +0300 Subject: [PATCH] don't crash to errors --HG-- branch : HEAD --- src/pop3/client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pop3/client.c b/src/pop3/client.c index 2a0fc1cec3..c8d6698412 100644 --- a/src/pop3/client.c +++ b/src/pop3/client.c @@ -201,6 +201,7 @@ void client_send_line(struct client *client, const char *fmt, ...) void client_send_storage_error(struct client *client) { const char *error; + int syntax; if (mailbox_is_inconsistent(client->mailbox)) { client_send_line(client, "-ERR Mailbox is in inconsistent " @@ -209,7 +210,7 @@ void client_send_storage_error(struct client *client) return; } - error = mail_storage_get_last_error(client->storage, NULL); + error = mail_storage_get_last_error(client->storage, &syntax); client_send_line(client, "-ERR %s", error != NULL ? error : "BUG: Unknown error"); } -- 2.47.3