diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-06-25 09:18:34 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-06-25 09:18:34 +0000 |
commit | 8edb1a69ed54525f32b3e0c20de5633b2cc7aa59 (patch) | |
tree | e0e62ea19c8867ba5d3a800aaf01ade59834c3dd /src | |
parent | b1235a764827a18aa8db3e47083b95f075d13b61 (diff) |
addressbook.c: null-check person to avoid crash.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1795 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r-- | src/addressbook.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/addressbook.c b/src/addressbook.c index 3894797c..bee48819 100644 --- a/src/addressbook.c +++ b/src/addressbook.c @@ -978,7 +978,7 @@ gchar *addressbook_format_address( AddressObject * obj ) { name = ADDRITEM_NAME(person); } } - else if( ADDRITEM_NAME(person) ) { + else if( person && ADDRITEM_NAME(person) ) { name = ADDRITEM_NAME(person); } else { |