summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2017-11-30 19:10:27 +0100
committerNicolai Hähnle <nicolai.haehnle@amd.com>2017-11-30 19:10:39 +0100
commit208c948d28b51f45b31b777379dfe9d30c058a9d (patch)
tree33225b484d9ee0237af6cdad0481374ff26db43d
parent16d69de8bea61e61e19e58b42b29cc8633cfa5d5 (diff)
helpers: silence an uninitialized variable warning
This may be hiding a bug.
-rw-r--r--helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers.c b/helpers.c
index ef653ed..a297570 100644
--- a/helpers.c
+++ b/helpers.c
@@ -452,7 +452,7 @@ 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 = 0, use_flag;
uint32_t i, j, k;
drmModePlanePtr plane;