CVS: plugins/notification/src notification_plugin.c,1.1.2.1,1.1.2.2
Holger Berndt <[email protected]>
| Newsgroups | gmane.mail.sylpheed.claws.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/sylpheed-claws/plugins/notification/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15188/src
Modified Files:
Tag: gtk2
notification_plugin.c
Log Message:
Check for NULL in hooks.
Index: notification_plugin.c
===================================================================
RCS file: /cvsroot/sylpheed-claws/plugins/notification/src/Attic/notification_plugin.c,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -r1.1.2.1 -r1.1.2.2
--- notification_plugin.c 9 Mar 2006 12:03:33 -0000 1.1.2.1
+++ notification_plugin.c 7 May 2006 18:15:00 -0000 1.1.2.2
@@ -50,6 +50,8 @@
static gboolean my_post_filtering_hook(gpointer source, gpointer data)
{
+ g_return_val_if_fail(source != NULL, FALSE);
+
#ifdef NOTIFICATION_POPUP
notification_popup_msg((MsgInfo*)source);
#endif
@@ -61,6 +63,8 @@
{
FolderItemUpdateData *update_data = source;
+ g_return_val_if_fail(source != NULL, FALSE);
+
if(update_data->update_flags & F_ITEM_UPDATE_MSGCNT) {
#ifdef NOTIFICATION_BANNER
notification_update_banner();
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642