diff options
author | Matthew Loper <mloper@src.gnome.org> | 2000-07-13 03:46:08 +0800 |
---|---|---|
committer | Matthew Loper <mloper@src.gnome.org> | 2000-07-13 03:46:08 +0800 |
commit | 4b7d13b41ff3dd03e8490108f30277f5469d40bf (patch) | |
tree | a5abec8050c7d02494aa5d4c53f99ab4926b8fde /camel/providers | |
parent | 2872871ac0327cda2fe74f8e81c6fcdfb7064bb6 (diff) | |
download | gsoc2013-evolution-4b7d13b41ff3dd03e8490108f30277f5469d40bf.tar gsoc2013-evolution-4b7d13b41ff3dd03e8490108f30277f5469d40bf.tar.gz gsoc2013-evolution-4b7d13b41ff3dd03e8490108f30277f5469d40bf.tar.bz2 gsoc2013-evolution-4b7d13b41ff3dd03e8490108f30277f5469d40bf.tar.lz gsoc2013-evolution-4b7d13b41ff3dd03e8490108f30277f5469d40bf.tar.xz gsoc2013-evolution-4b7d13b41ff3dd03e8490108f30277f5469d40bf.tar.zst gsoc2013-evolution-4b7d13b41ff3dd03e8490108f30277f5469d40bf.zip |
Solaris fixes: make sure not to pass NULL to printf's %s
svn path=/trunk/; revision=4119
Diffstat (limited to 'camel/providers')
-rw-r--r-- | camel/providers/imap/camel-imap-store.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c index d516694c6e..eeb7bd7d90 100644 --- a/camel/providers/imap/camel-imap-store.c +++ b/camel/providers/imap/camel-imap-store.c @@ -196,7 +196,8 @@ query_auth_types (CamelService *service, CamelException *ex) if (!ret) { camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE, "Could not connect to IMAP server on " - "%s.", service->url->host); + "%s.", service->url->host ? service->url->host : + "(unknown host)"); } return ret; @@ -248,7 +249,8 @@ imap_connect (CamelService *service, CamelException *ex) if (fd == -1 || connect (fd, (struct sockaddr *)&sin, sizeof(sin)) == -1) { camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE, "Could not connect to %s (port %s): %s", - service->url->host, service->url->port, + service->url->host ? service->url->host : "(unknown host)", + service->url->port ? service->url->port : "(unknown port)", strerror(errno)); if (fd > -1) close (fd); |