Fix crash when importing pine address book entry with an empty name.
authorDarko Koruga <darko@users.sourceforge.net>
Wed, 15 Jan 2003 07:02:33 +0000 (07:02 +0000)
committerDarko Koruga <darko@users.sourceforge.net>
Wed, 15 Jan 2003 07:02:33 +0000 (07:02 +0000)
ChangeLog.claws
configure.ac
src/pine.c

index 73fc886..aff5fc5 100644 (file)
@@ -1,3 +1,10 @@
+2003-01-15 [darko]     0.8.8claws100
+
+       * src/pine.c
+               fix crash when importing pine address book
+               entry with an empty name (reported by DY
+               <dybulk at tri8.net>)
+
 2003-01-14 [paul]      0.8.8claws99
 
        * configure.in  ** REMOVED **
index 7a12cdd..5237a8b 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=8
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws99
+EXTRA_VERSION=claws100
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 7dac93c..165b0c8 100644 (file)
@@ -454,6 +454,10 @@ static ItemEMail *pine_insert_table(
 
        g_return_if_fail( address != NULL );
 
+       /* create an entry with empty name if needed */
+       if ( name == NULL )
+               name = "";
+
        /* Test whether address already in hash table */
        key = g_strdup( address );
        g_strdown( key );