mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 07:02:28 +00:00
backend/drm: fix NULL pointer deference due to typo
This commit is contained in:
parent
1f96f388e9
commit
5cca72958a
@ -116,7 +116,7 @@ void parse_edid(struct wlr_drm_connector *conn, size_t len, const uint8_t *data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
output->model = strdup(model_str);
|
output->model = strdup(model_str);
|
||||||
if (output->serial[0] != '\0') {
|
if (serial_str[0] != '\0') {
|
||||||
output->serial = strdup(serial_str);
|
output->serial = strdup(serial_str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user