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>
This commit is contained in:
Daniel Stone 2022-12-29 17:17:51 +00:00
parent 04cc477afa
commit 5a26809560

View File

@ -740,7 +740,7 @@ static void
output_handle_description(void *data, struct wl_output *wl_output, const char *desc) output_handle_description(void *data, struct wl_output *wl_output, const char *desc)
{ {
struct output *output = data; struct output *output = data;
output->name = strdup(desc); output->desc = strdup(desc);
} }
static void static void