]> git.cworth.org Git - apitrace/commitdiff
gltrace: Prevent use of uninitialised variable.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 20 Dec 2012 16:26:29 +0000 (16:26 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 20 Dec 2012 16:29:50 +0000 (16:29 +0000)
wrappers/gltrace_state.cpp

index 68bda100354db46025c678618d3d66f2a9d6749e..031b5cceb431155a480eebc1d0dd2dd84fde7a8c 100644 (file)
@@ -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();
     /*