diff options
author | Isaac Freund <mail@isaacfreund.com> | 2022-06-07 17:08:08 +0200 |
---|---|---|
committer | Isaac Freund <mail@isaacfreund.com> | 2022-06-07 17:08:08 +0200 |
commit | 5cca72958a37c3474df1975c271d8884cf3ec6d2 (patch) | |
tree | bfe2bb189c9a32711b20c524e0dd8d4b3703146b | |
parent | 1f96f388e9db8ca8b196fc9f72008094fd634177 (diff) |
backend/drm: fix NULL pointer deference due to typo
-rw-r--r-- | backend/drm/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |