Fix crash when importing pine addressbook (reported on ML by dybulk@tri8.net).
This commit is contained in:
parent
e3207f5629
commit
ae8863f5c0
3 changed files with 11 additions and 1 deletions
|
@ -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
|
2003-01-09 [alfons] 0.8.8claws72
|
||||||
|
|
||||||
* src/inc.c
|
* src/inc.c
|
||||||
|
|
|
@ -11,7 +11,7 @@ MINOR_VERSION=8
|
||||||
MICRO_VERSION=8
|
MICRO_VERSION=8
|
||||||
INTERFACE_AGE=0
|
INTERFACE_AGE=0
|
||||||
BINARY_AGE=0
|
BINARY_AGE=0
|
||||||
EXTRA_VERSION=claws72
|
EXTRA_VERSION=claws73
|
||||||
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
|
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
|
||||||
|
|
||||||
dnl set $target
|
dnl set $target
|
||||||
|
|
|
@ -414,6 +414,8 @@ static void pine_parse_address( PineFile *pineFile, AddressCache *cache, Pine_Pa
|
||||||
gchar *name;
|
gchar *name;
|
||||||
gint len;
|
gint len;
|
||||||
|
|
||||||
|
g_return_if_fail( rec->address != NULL );
|
||||||
|
|
||||||
buf = rec->address;
|
buf = rec->address;
|
||||||
while((atCh = strchr( buf, CHAR_AT )) != NULL) {
|
while((atCh = strchr( buf, CHAR_AT )) != NULL) {
|
||||||
name = pine_parse_name( buf, atCh, &bp, &ep );
|
name = pine_parse_name( buf, atCh, &bp, &ep );
|
||||||
|
@ -450,6 +452,8 @@ static ItemEMail *pine_insert_table(
|
||||||
ItemEMail *email;
|
ItemEMail *email;
|
||||||
gchar *key;
|
gchar *key;
|
||||||
|
|
||||||
|
g_return_if_fail( address != NULL );
|
||||||
|
|
||||||
/* Test whether address already in hash table */
|
/* Test whether address already in hash table */
|
||||||
key = g_strdup( address );
|
key = g_strdup( address );
|
||||||
g_strdown( key );
|
g_strdown( key );
|
||||||
|
|
Loading…
Reference in a new issue