backend/drm: fix NULL pointer deference due to typo

Isaac Freund 2 years ago
parent 1f96f388e9
commit 5cca72958a
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

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

Loading…
Cancel
Save