diff --git a/backend/drm/util.c b/backend/drm/util.c index b25d9c8c..d56eee38 100644 --- a/backend/drm/util.c +++ b/backend/drm/util.c @@ -116,7 +116,7 @@ void parse_edid(struct wlr_drm_connector *conn, size_t len, const uint8_t *data) } output->model = strdup(model_str); - if (output->serial[0] != '\0') { + if (serial_str[0] != '\0') { output->serial = strdup(serial_str); } }