Skip to content
Snippets Groups Projects
Commit 08b93d95 authored by Tofu Linden's avatar Tofu Linden
Browse files

CID-277

Checker: UNINIT_CTOR
Function: LLPacketBuffer::LLPacketBuffer(const LLHost &, const char *, int)
File: /indra/llmessage/llpacketbuffer.cpp

a fix I like better.
parent 2879692a
No related branches found
No related tags found
No related merge requests found
...@@ -42,13 +42,14 @@ ...@@ -42,13 +42,14 @@
LLPacketBuffer::LLPacketBuffer(const LLHost &host, const char *datap, const S32 size) : mHost(host) LLPacketBuffer::LLPacketBuffer(const LLHost &host, const char *datap, const S32 size) : mHost(host)
{ {
mSize = 0;
mData[0] = '!';
if (size > NET_BUFFER_SIZE) if (size > NET_BUFFER_SIZE)
{ {
mSize = 0;
mData[0] = 0;
llerrs << "Sending packet > " << NET_BUFFER_SIZE << " of size " << size << llendl; llerrs << "Sending packet > " << NET_BUFFER_SIZE << " of size " << size << llendl;
} }
else // we previously relied on llerrs being fatal to not get here... else
{ {
if (datap != NULL) if (datap != NULL)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment