backend/drm: fix NULL pointer deference due to typo

This commit is contained in:
Isaac Freund 2022-06-07 17:08:08 +02:00
parent 1f96f388e9
commit 5cca72958a
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}