Changeset 2413

Show
Ignore:
Timestamp:
07/06/07 16:50:16
Author:
pvanhoof
Message:

Added a NULL guard

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ChangeLog

    r2412 r2413  
    3535        * Fixed an API glitch in TnyFolderChange 
    3636        * Empty folder bugfix 
     37        * Added a guard to tny_mime_part_set_filename for NULL situations 
    3738 
    38392007-07-05  Philip Van Hoof  <pvanhoof@gnome.org> 
  • trunk/libtinymail-camel/tny-camel-mime-part.c

    r2318 r2413  
    277277} 
    278278 
    279 #ifndef _GNU_SOURCE 
    280 #define _GNU_SOURCE 
    281 #endif 
     279char *strcasestr(const char *haystack, const char *needle); 
    282280 
    283281static gboolean  
     
    837835 
    838836        g_mutex_lock (priv->part_lock); 
    839         camel_mime_part_set_filename (priv->part, filename); 
     837        if (filename) /* Q: Perhaps is this check not needed (and even invalid) */ 
     838                camel_mime_part_set_filename (priv->part, filename); 
    840839        g_mutex_unlock (priv->part_lock); 
    841840