From de75275fe54c5536c8238f0f3f88bb7ac2222942 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 19 Oct 2022 22:00:59 -0400 Subject: gdbsupport: change xml_escape_text_append's parameter from pointer to reference The passed in string can't be nullptr, it makes more sense to pass in a reference. Change-Id: Idc8bd38abe1d6d9b44aa227d7856956848c233b3 --- gdb/unittests/xml-utils-selftests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb') diff --git a/gdb/unittests/xml-utils-selftests.c b/gdb/unittests/xml-utils-selftests.c index 08a48f6..f86e1e1 100644 --- a/gdb/unittests/xml-utils-selftests.c +++ b/gdb/unittests/xml-utils-selftests.c @@ -40,7 +40,7 @@ static void test_xml_escape_text_append () const char *input = " &"; const char *expected_output = "foo<this isn't="xml"> &"; - xml_escape_text_append (&actual_output, input); + xml_escape_text_append (actual_output, input); SELF_CHECK (actual_output == expected_output); } -- cgit v1.1