minor cppcheck

This commit is contained in:
Michael Davidsaver
2021-10-28 10:04:25 -07:00
parent 49144445f7
commit f749b5ee39
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -593,7 +593,7 @@ bool EvOutBuf::refill(size_t more)
evbuffer_iovec vec;
vec.iov_base = base;
vec.iov_len = pos-base;
vec.iov_len = base ? pos - base : 0u;
if(base && evbuffer_commit_space(backing, &vec, 1))
throw std::bad_alloc(); // leak?