aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2022-10-19 22:00:59 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2022-12-15 21:56:25 -0500
commitde75275fe54c5536c8238f0f3f88bb7ac2222942 (patch)
tree521af24ffa46304fd972b179d7af347329c1ddff /gdb
parentf8631e5e04dbef678323e9be6b7329f39049d2c4 (diff)
downloadgdb-de75275fe54c5536c8238f0f3f88bb7ac2222942.zip
gdb-de75275fe54c5536c8238f0f3f88bb7ac2222942.tar.gz
gdb-de75275fe54c5536c8238f0f3f88bb7ac2222942.tar.bz2
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
Diffstat (limited to 'gdb')
-rw-r--r--gdb/unittests/xml-utils-selftests.c2
1 files changed, 1 insertions, 1 deletions
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 = "<this isn't=\"xml\"> &";
const char *expected_output
= "foo<xml>&lt;this isn&apos;t=&quot;xml&quot;&gt; &amp;";
- xml_escape_text_append (&actual_output, input);
+ xml_escape_text_append (actual_output, input);
SELF_CHECK (actual_output == expected_output);
}