Skip to content

Commit

Permalink
Fix clang-analyzer report
Browse files Browse the repository at this point in the history
  • Loading branch information
owent committed May 27, 2024
1 parent ecff5b4 commit e47951d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ jobs:
USE_CC: ${{ matrix.cc }}
VCPKG_TARGET_TRIPLET: ${{ matrix.triplet }}
run: |
# The OpenSSL config package in apple ci job is break
if [ -e /opt/homebrew/lib/cmake/OpenSSL ]; then
rm -rf /opt/homebrew/lib/cmake/OpenSSL || true
fi
if [[ "xgcc-4.8" == "x$USE_CC" ]]; then
sudo apt-add-repository 'deb http://archive.ubuntu.com/ubuntu/ xenial main'
sudo apt-add-repository 'deb http://archive.ubuntu.com/ubuntu/ xenial universe'
Expand Down
2 changes: 1 addition & 1 deletion atframework/atframe_utils
2 changes: 1 addition & 1 deletion atframework/cmake-toolset
2 changes: 1 addition & 1 deletion src/channel_io_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1940,7 +1940,7 @@ int io_stream_send(io_stream_connection *connection, const void *buf, size_t len
// 判定内存限制
void *data;
int res = connection->write_buffers.push_back(data, total_buffer_size);
if (res < 0) {
if (res < 0 || nullptr == data) {
return res;
}

Expand Down

0 comments on commit e47951d

Please sign in to comment.