dbus/dbus dbus-message.c,1.173,1.174

Havoc Pennington hp at freedesktop.org
Wed Aug 10 03:38:18 EST 2005


Update of /cvs/dbus/dbus/dbus
In directory gabe:/tmp/cvs-serv27663/dbus

Modified Files:
	dbus-message.c 
Log Message:
2005-08-09  Havoc Pennington  <hp at redhat.com>

	* dbus/dbus-message.c (dbus_message_set_reply_serial): print
	warning if the reply serial is set to 0



Index: dbus-message.c
===================================================================
RCS file: /cvs/dbus/dbus/dbus/dbus-message.c,v
retrieving revision 1.173
retrieving revision 1.174
diff -u -d -r1.173 -r1.174
--- dbus-message.c	31 Jul 2005 02:09:15 -0000	1.173
+++ dbus-message.c	9 Aug 2005 17:38:15 -0000	1.174
@@ -402,6 +402,7 @@
 {
   _dbus_return_val_if_fail (message != NULL, FALSE);
   _dbus_return_val_if_fail (!message->locked, FALSE);
+  _dbus_return_val_if_fail (reply_serial != 0, FALSE); /* 0 is invalid */
 
   return _dbus_header_set_field_basic (&message->header,
                                        DBUS_HEADER_FIELD_REPLY_SERIAL,



More information about the dbus-commit mailing list