diff options
author | Ed Tanous <ed@tanous.net> | 2024-05-15 22:39:48 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2024-05-15 22:39:50 +0300 |
commit | 43498813ad8c37902f7c4cc7128072c7405054e9 (patch) | |
tree | 0de4b4bc2e941918084af58860c16b59597d13c2 /include | |
parent | c8491cb0b416637f1c1119c3f0d95500a4bd9c29 (diff) | |
download | bmcweb-master.tar.xz |
Static analysis flags that we're ignoring a return value here. Use it.
Tested: Code compiles.
Change-Id: I2b37286b5a7b549b483ed5669fa0c24a628adc98
Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/vm_websocket.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/vm_websocket.hpp b/include/vm_websocket.hpp index 7e55e4ec8c..4d86c3e231 100644 --- a/include/vm_websocket.hpp +++ b/include/vm_websocket.hpp @@ -590,9 +590,10 @@ inline void requestRoutes(App& app) return; } - boost::asio::buffer_copy(handler->inputBuffer->prepare(data.size()), - boost::asio::buffer(data)); - handler->inputBuffer->commit(data.size()); + size_t copied = boost::asio::buffer_copy( + handler->inputBuffer->prepare(data.size()), + boost::asio::buffer(data)); + handler->inputBuffer->commit(copied); handler->doWrite(); }); } |