Skip to content

Commit d274207

Browse files
committed
display/drm: Add missing initializers
1 parent 4ab08a4 commit d274207

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/video_display/drm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ struct Drm_state {
305305
std::set<uint32_t> supported_drm_formats;
306306
bool prime_support = false;
307307

308-
drmModeModeInfoPtr mode_info;
308+
drmModeModeInfoPtr mode_info = nullptr;
309309
};
310310

311311
struct Drm_framebuffer{
@@ -345,7 +345,7 @@ struct drm_display_state {
345345

346346
Drm_prime_fb drm_prime_fb;
347347

348-
video_desc desc;
348+
video_desc desc{};
349349
frame_uniq frame;
350350

351351
std::vector<frame_uniq> free_frames;

0 commit comments

Comments
 (0)