summaryrefslogtreecommitdiff
path: root/indra/llmessage/llpacketbuffer.cpp
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-02-03 20:26:42 +0000
committerTofu Linden <tofu.linden@lindenlab.com>2010-02-03 20:26:42 +0000
commit08b93d95ef9d21e39d633ada19a6cbad23c25b91 (patch)
tree53387bedebbc97eb3d7ad8b6a7d431317b5efcf8 /indra/llmessage/llpacketbuffer.cpp
parent2879692aa2696af80a1f12daaf88b886412dacb5 (diff)
CID-277
Checker: UNINIT_CTOR Function: LLPacketBuffer::LLPacketBuffer(const LLHost &, const char *, int) File: /indra/llmessage/llpacketbuffer.cpp a fix I like better.
Diffstat (limited to 'indra/llmessage/llpacketbuffer.cpp')
-rw-r--r--indra/llmessage/llpacketbuffer.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/llmessage/llpacketbuffer.cpp b/indra/llmessage/llpacketbuffer.cpp
index 60ced66318..441e8ddd27 100644
--- a/indra/llmessage/llpacketbuffer.cpp
+++ b/indra/llmessage/llpacketbuffer.cpp
@@ -42,13 +42,14 @@
LLPacketBuffer::LLPacketBuffer(const LLHost &host, const char *datap, const S32 size) : mHost(host)
{
+ mSize = 0;
+ mData[0] = '!';
+
if (size > NET_BUFFER_SIZE)
{
- mSize = 0;
- mData[0] = 0;
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)
{