aboutsummaryrefslogtreecommitdiff
path: root/backend/drm/util.c
diff options
context:
space:
mode:
authorIsaac Freund <mail@isaacfreund.com>2022-06-07 17:08:08 +0200
committerIsaac Freund <mail@isaacfreund.com>2022-06-07 17:08:08 +0200
commit5cca72958a37c3474df1975c271d8884cf3ec6d2 (patch)
treebfe2bb189c9a32711b20c524e0dd8d4b3703146b /backend/drm/util.c
parent1f96f388e9db8ca8b196fc9f72008094fd634177 (diff)
backend/drm: fix NULL pointer deference due to typo
Diffstat (limited to 'backend/drm/util.c')
-rw-r--r--backend/drm/util.c2
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);
}
}