diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-02-06 10:04:11 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-02-06 10:04:11 +0100 |
commit | 8a285845bb5fbb02edeee2434ecc54bb5267cf5d (patch) | |
tree | 1613142c8df6fb6fa666ccf5fc37f7b16a612946 | |
parent | 9612f819292d64c8d2030e513602ee68a3ce0b04 (diff) | |
download | drminfo-8a285845bb5fbb02edeee2434ecc54bb5267cf5d.tar.gz |
fix crash with no modifiers
-rw-r--r-- | drminfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -226,7 +226,7 @@ static void drm_info_plane(int fd, drmModePlane *plane, fprintf(stdout, " format modifiers\n"); for (i = 0; i < plane->count_formats; i++) { if (print_modifiers) { - uint64_t *drm_modifiers; + uint64_t *drm_modifiers = NULL; size_t drm_modifiers_count; size_t m; int pos = 12; |