mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-22 18:09:49 +01:00
backend/drm: fix NULL pointer deference due to typo
This commit is contained in:
parent
1f96f388e9
commit
5cca72958a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue