diff options
author | Daniel Stone <daniels@collabora.com> | 2022-12-29 17:17:51 +0000 |
---|---|---|
committer | Daniel Stone <daniels@collabora.com> | 2022-12-29 17:41:24 +0000 |
commit | 5a26809560487ba2e7231053f77b5d2703ddc0c5 (patch) | |
tree | 526d2850b988a939eafad0faddc042cc692bba8b /tests | |
parent | 04cc477afa1335292ebdc58cacff444c1eeeea47 (diff) | |
download | weston-5a26809560487ba2e7231053f77b5d2703ddc0c5.tar.gz |
tests: Store output description into correct field
We were storing the output description into the name field, which was
harmless but did cause a leak.
Signed-off-by: Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/weston-test-client-helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/weston-test-client-helper.c b/tests/weston-test-client-helper.c index 2ce1ffd8..31d8ea7c 100644 --- a/tests/weston-test-client-helper.c +++ b/tests/weston-test-client-helper.c @@ -740,7 +740,7 @@ static void output_handle_description(void *data, struct wl_output *wl_output, const char *desc) { struct output *output = data; - output->name = strdup(desc); + output->desc = strdup(desc); } static void |