summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2006-08-10 23:03:29 +0000
committerJohn (J5) Palmieri <johnp@redhat.com>2006-08-10 23:03:29 +0000
commit048c76d779c06cf3e89ff2d47774297360f4c8c0 (patch)
tree356bede075c56072efa91fb0d50496bac53a0c4c
parent42319b9d10bd17014de93dbd919bb6d01e545c80 (diff)
* 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.
-rw-r--r--ChangeLog7
-rw-r--r--dbus/dbus-address.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1ba4c55b..893c2960 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2006-08-10 John (J5) Palmieri <johnp@redhat.com>
+ * 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.
+
+2006-08-10 John (J5) Palmieri <johnp@redhat.com>
+
* dbus/dbus-macros.h: Revert the addition of stddef.h
as we should not be adding it to library headers
diff --git a/dbus/dbus-address.c b/dbus/dbus-address.c
index ae9acfee..dfedcb09 100644
--- a/dbus/dbus-address.c
+++ b/dbus/dbus-address.c
@@ -715,7 +715,7 @@ _dbus_address_test (void)
&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);