SOURCES: tleenx2-check-for-body.diff (NEW) - patch for the bug in ...

piti piti at pld-linux.org
Fri Jul 14 17:38:07 CEST 2006


Author: piti                         Date: Fri Jul 14 15:38:07 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- patch for the bug in empty messages handling

---- Files affected:
SOURCES:
   tleenx2-check-for-body.diff (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/tleenx2-check-for-body.diff
diff -u /dev/null SOURCES/tleenx2-check-for-body.diff:1.1
--- /dev/null	Fri Jul 14 17:38:07 2006
+++ SOURCES/tleenx2-check-for-body.diff	Fri Jul 14 17:38:02 2006
@@ -0,0 +1,22 @@
+--- src/utils.c.orig	2006-02-06 01:36:59.000000000 +0100
++++ src/utils.c	2006-03-28 17:15:42.000000000 +0200
+@@ -703,6 +703,8 @@
+           }
+ 
+         case TLEN_EVENT_MESSAGE:
++		  if(!event->message->body) 
++			  break;
+           message_show(
+                        event->message->from,
+                        event->message->body,
+--- src/jabber.c.orig	2006-02-06 01:36:59.000000000 +0100
++++ src/jabber.c	2006-03-28 17:18:14.000000000 +0200
+@@ -297,7 +297,7 @@
+         jabber_get_agents();
+       break;
+     case JABBY_EVENT_MESSAGE:
+-      {
++      if(event->event.message->body) {
+         gint type;
+ 
+         type = event->event.message->type;
================================================================


More information about the pld-cvs-commit mailing list