dbus/dbus dbus-address.c,1.18,1.19

John Palmieri johnp at kemper.freedesktop.org
Thu Aug 10 16:03:31 PDT 2006


Update of /cvs/dbus/dbus/dbus
In directory kemper:/tmp/cvs-serv26617/dbus

Modified Files:
	dbus-address.c 
Log Message:
* dbus/dbus-address.c (_dbus_address_test): Revert leaking strcmp.  
  In any case it was wrong since this is a test checking to see if
  address parsing is correct.  There was no need to get the true   
  tmp directory.


Index: dbus-address.c
===================================================================
RCS file: /cvs/dbus/dbus/dbus/dbus-address.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- dbus-address.c	10 Aug 2006 20:09:43 -0000	1.18
+++ dbus-address.c	10 Aug 2006 23:03:29 -0000	1.19
@@ -715,7 +715,7 @@
 			   &entries, &len, &error))
     _dbus_assert_not_reached ("could not parse address");
   _dbus_assert (len == 2);
-  _dbus_assert (strcmp (dbus_address_entry_get_value (entries[0], "path"), strcat(_dbus_get_tmpdir(),"/foo") == 0));
+  _dbus_assert (strcmp (dbus_address_entry_get_value (entries[0], "path"), "/tmp/foo") == 0));
   _dbus_assert (strcmp (dbus_address_entry_get_value (entries[1], "name"), "test") == 0);
   _dbus_assert (strcmp (dbus_address_entry_get_value (entries[1], "sliff"), "sloff") == 0);
   



More information about the dbus-commit mailing list