From: José Fonseca Date: Thu, 20 Dec 2012 16:26:29 +0000 (+0000) Subject: gltrace: Prevent use of uninitialised variable. X-Git-Url: https://git.cworth.org/git?p=apitrace;a=commitdiff_plain;h=d4dd924850e6fb3b7d150299d08b6d488ff1023a gltrace: Prevent use of uninitialised variable. --- diff --git a/wrappers/gltrace_state.cpp b/wrappers/gltrace_state.cpp index 68bda10..031b5cc 100644 --- a/wrappers/gltrace_state.cpp +++ b/wrappers/gltrace_state.cpp @@ -94,7 +94,7 @@ static bool _releaseContext(context_ptr_t ctx) */ bool releaseContext(uintptr_t context_id) { - bool res; + bool res = false; context_map_mutex.lock(); /*