title: #ERROR# potentially uninitialized local pointer variable 'ptrNames' used
body: <p>I get the error "potentially uninitialized local pointer variable 'ptrNames' used" if I run this code:</p>
  
  <pre><code>void processHits (GLint hits, GLuint buffer[]) //Some prints
  {
      unsigned int i, j;
      GLuint names, *ptr, minZ,*ptrNames, numberOfNames;
      if (hits == 0)
          noSelected = true;
      else 
          noSelected = false;
      ptr = (GLuint *) buffer;
      minZ = 0xffffffff;
      for (i = 0; i &lt; hits; i++) {
          names = *ptr;
          ptr++;
          if (*ptr &lt; minZ) {
              numberOfNames = names;                                                   
              minZ = *ptr;
              ptrNames = ptr+2;
          }
          ptr += names+2;
      }
      ptr = ptrNames; //Error at this line!
      for (j = 0; j &lt; numberOfNames; j++,ptr++) {
          if (hits &gt; 0)
             LastSelected = *ptr;
      }
  }
  </code></pre>