]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Suppressed a compiler warning.
authorBart Van Assche <bvanassche@acm.org>
Thu, 23 Jul 2009 10:50:33 +0000 (10:50 +0000)
committerBart Van Assche <bvanassche@acm.org>
Thu, 23 Jul 2009 10:50:33 +0000 (10:50 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10556

drd/tests/tsan_thread_wrappers_pthread.h

index a7a195fd5002d3e77e646a707e8195973ab87608..81e3b313910bda04d06933724d261757e3d2c24b 100644 (file)
@@ -391,7 +391,7 @@ class ProducerConsumerQueue {
   // Blocks if the queue is empty. 
   void *Get() {    
     mu_.LockWhen(Condition(IsQueueNotEmpty, &q_));
-      void * item;
+      void * item = NULL;
       bool ok = TryGetInternal(&item);
       CHECK(ok);    
     mu_.Unlock();