OSDN Git Service

Fix potential uninitialized read
[android-x86/external-minigbm.git] / helpers.c
index 4fabfa9..592981d 100644 (file)
--- a/helpers.c
+++ b/helpers.c
@@ -520,7 +520,8 @@ void drv_modify_combination(struct driver *drv, uint32_t format, struct format_m
 struct drv_array *drv_query_kms(struct driver *drv)
 {
        struct drv_array *kms_items;
-       uint64_t plane_type, use_flag;
+       uint64_t plane_type = UINT64_MAX;
+        uint64_t use_flag;
        uint32_t i, j, k;
 
        drmModePlanePtr plane;