diff --git a/src/DebugServer/Gdb/AvrGdb/CommandPackets/WriteMemory.cpp b/src/DebugServer/Gdb/AvrGdb/CommandPackets/WriteMemory.cpp index 13724cca..8e1ae794 100644 --- a/src/DebugServer/Gdb/AvrGdb/CommandPackets/WriteMemory.cpp +++ b/src/DebugServer/Gdb/AvrGdb/CommandPackets/WriteMemory.cpp @@ -29,7 +29,7 @@ namespace DebugServer::Gdb::AvrGdb::CommandPackets Logger::info("Handling WriteMemory packet"); try { - if (this->buffer.size() == 0) { + if (this->buffer.empty()) { debugSession.connection.writePacket(OkResponsePacket{}); return; }