Fix crash when importing pine addressbook (reported on ML by dybulk@tri8.net).

This commit is contained in:
Darko Koruga 2003-01-10 06:41:52 +00:00
parent e3207f5629
commit ae8863f5c0
3 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2003-01-10 [darko] 0.8.8claws73
* src/pine.c
fix crash when importing address book entry
without a valid address
2003-01-09 [alfons] 0.8.8claws72
* src/inc.c

View file

@ -11,7 +11,7 @@ MINOR_VERSION=8
MICRO_VERSION=8
INTERFACE_AGE=0
BINARY_AGE=0
EXTRA_VERSION=claws72
EXTRA_VERSION=claws73
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl set $target

View file

@ -414,6 +414,8 @@ static void pine_parse_address( PineFile *pineFile, AddressCache *cache, Pine_Pa
gchar *name;
gint len;
g_return_if_fail( rec->address != NULL );
buf = rec->address;
while((atCh = strchr( buf, CHAR_AT )) != NULL) {
name = pine_parse_name( buf, atCh, &bp, &ep );
@ -450,6 +452,8 @@ static ItemEMail *pine_insert_table(
ItemEMail *email;
gchar *key;
g_return_if_fail( address != NULL );
/* Test whether address already in hash table */
key = g_strdup( address );
g_strdown( key );