aboutsummaryrefslogtreecommitdiff
path: root/src/addressbook.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-02-15 07:01:56 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-02-15 07:01:56 +0000
commitde43244574ce665efe665f232745c0efe940604a (patch)
tree8d0f11d510d569e4b3270e61a3c72991ebda9b7d /src/addressbook.c
parentfe2c92fa4394d41dd5c8b18dc0d360779d3349d6 (diff)
addressbook_load_completion(): fixed possible crash.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1546 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/addressbook.c')
-rw-r--r--src/addressbook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/addressbook.c b/src/addressbook.c
index 3785fa7a..adfd4aae 100644
--- a/src/addressbook.c
+++ b/src/addressbook.c
@@ -3514,7 +3514,7 @@ gboolean addressbook_load_completion( gint (*callBackFunc) ( const gchar *, cons
/* Have mail */
sFriendly = sName;
sAddress = email->address;
- if( sAddress || *sAddress != '\0' ) {
+ if( sAddress && *sAddress != '\0' ) {
sAlias = ADDRITEM_NAME(email);
if( sAlias && *sAlias != '\0' ) {
sFriendly = sAlias;