Project: two errors from clang’s static analysis