aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/smtp
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers/smtp')
-rw-r--r--camel/providers/smtp/camel-smtp-transport.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/camel/providers/smtp/camel-smtp-transport.c b/camel/providers/smtp/camel-smtp-transport.c
index c37b35ce44..73dfbea344 100644
--- a/camel/providers/smtp/camel-smtp-transport.c
+++ b/camel/providers/smtp/camel-smtp-transport.c
@@ -164,7 +164,10 @@ get_smtp_error_string (int error)
switch (error) {
case 0:
/* looks like a read problem, check errno */
- return g_strerror (errno);
+ if (errno)
+ return g_strerror (errno);
+ else
+ return _("Unknown");
case 500:
return _("Syntax error, command unrecognized");
case 501: