From a515404e1196582951908eb9073aa1f9e700138c Mon Sep 17 00:00:00 2001 From: Dmitriy Evgenevich Gonzha Date: Tue, 12 Sep 2017 21:12:02 +0300 Subject: [PATCH] Fix error with -Werror=maybe-uninitialized Fix compilation error on ASan build: tbm_surface_internal.c:2077:3: error: 'format' may be used uninitialized in this function [-Werror=maybe-uninitialized] Change-Id: Idb72be1135b22e8c8dfc4a156513346680affb3b Signed-off-by: Dmitriy Evgenevich Gonzha --- src/tbm_surface_internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tbm_surface_internal.c b/src/tbm_surface_internal.c index 3633d73..20d7354 100644 --- a/src/tbm_surface_internal.c +++ b/src/tbm_surface_internal.c @@ -1989,7 +1989,7 @@ tbm_surface_internal_dump_buffer(tbm_surface_h surface, const char *type) tbm_surface_info_s info; tbm_bo_handle bo_handle; const char *postfix; - const char *format; + const char *format = NULL; char *keys; int ret; -- 2.34.1