diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2022-10-19 22:00:59 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-12-15 21:56:25 -0500 |
commit | de75275fe54c5536c8238f0f3f88bb7ac2222942 (patch) | |
tree | 521af24ffa46304fd972b179d7af347329c1ddff /gdb/unittests | |
parent | f8631e5e04dbef678323e9be6b7329f39049d2c4 (diff) | |
download | binutils-de75275fe54c5536c8238f0f3f88bb7ac2222942.zip binutils-de75275fe54c5536c8238f0f3f88bb7ac2222942.tar.gz binutils-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/unittests')
-rw-r--r-- | gdb/unittests/xml-utils-selftests.c | 2 |
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><this isn't="xml"> &"; - xml_escape_text_append (&actual_output, input); + xml_escape_text_append (actual_output, input); SELF_CHECK (actual_output == expected_output); } |