<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - False positive: Dereference of null pointer (confused by conditional operator?)"
   href="http://llvm.org/bugs/show_bug.cgi?id=16079">16079</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>False positive: Dereference of null pointer (confused by conditional operator?)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Static Analyzer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>kremenek@apple.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ed0.88.prez@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=10550" name="attach_10550" title="Preprocessed source of the problematic file">attachment 10550</a> <a href="attachment.cgi?id=10550&action=edit" title="Preprocessed source of the problematic file">[details]</a></span>
Preprocessed source of the problematic file

Hi,
as I told to the IRC, here it is the preprocessed source with the problem. The
message is reported for this code:

[code]
void DBaseStatusBar::BlendView (float blend[4])
{
    V_AddBlend (BaseBlendR / 255.f, BaseBlendG / 255.f, BaseBlendB / 255.f,
BaseBlendA, blend);
    V_AddPlayerBlend(CPlayer, blend, 1.0f, 228);

    if (screen->Accel2D || (CPlayer->camera != NULL && menuactive == MENU_Off
&& ConsoleState == c_up))
    {
        player_t *player = (CPlayer->camera != NULL && CPlayer->camera->player
!= NULL) ? CPlayer->camera->player : CPlayer; // <- here
        V_AddBlend (player->BlendR, player->BlendG, player->BlendB,
player->BlendA, blend);
    }

    V_SetBlend ((int)(blend[0] * 255.0f), (int)(blend[1] * 255.0f),
                (int)(blend[2] * 255.0f), (int)(blend[3] * 256.0f));
}
[/code]</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>