summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-string.c
diff options
context:
space:
mode:
Diffstat (limited to 'dbus/dbus-string.c')
-rw-r--r--dbus/dbus-string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbus/dbus-string.c b/dbus/dbus-string.c
index 573ed313..2b8d1349 100644
--- a/dbus/dbus-string.c
+++ b/dbus/dbus-string.c
@@ -1200,9 +1200,9 @@ _dbus_string_test (void)
_dbus_assert (v == 27);
_dbus_assert (end == i);
-
- _dbus_string_set_length (&str, 0);
+ _dbus_string_free (&str);
+
if (!_dbus_string_init (&str, _DBUS_INT_MAX))
_dbus_assert_not_reached ("failed to init string");