title: Function call argument is an uninitialized value?
body: <p>I have been trying to figure out why the Analyzer in Xcode seems to like the this code, so maybe someone can see what is wrong. Gives me this message: "Function call argument is an uninitialized value".</p>
  
  <p>It has a problem with this line and complains about the "statement":</p>
  
  <pre><code>if (sqlite3_exec(MysDB, delete_stmt, NULL, statement, NULL) == SQLITE_OK) {
  </code></pre>
  
  <p>Actual Code:</p>
  
  <pre><code>-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
  if (buttonIndex == 1) {
      sqlite3_stmt *statement;
      const char *dbpath = [databasePath UTF8String];
  
      if (sqlite3_open(dbpath, &amp;MyDB) == SQLITE_OK)
      {
          NSString *deleteSQL = [NSString stringWithFormat:@"DELETE FROM DATATABLE WHERE ID = %d", recordID];
  
          const char *delete_stmt = [deleteSQL UTF8String];
          if (sqlite3_exec(MysDB, delete_stmt, NULL, statement, NULL) == SQLITE_OK) {
  
              NSLog(@"Deleted");            
          }else{
              NSLog(@"Not Deleted");
          }
          sqlite3_close(MyDB);
      }
  }
  
  More Code Here Removed on Purpose...
  }
  </code></pre>