You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by br...@apache.org on 2014/07/14 22:08:14 UTC

git commit: TS-1475: Initialize location earlier when tracking allocation locations. Coverity #1200034

Repository: trafficserver
Updated Branches:
  refs/heads/master 45a5ff5cd -> b9e0e605f


TS-1475: Initialize location earlier when tracking allocation locations. Coverity #1200034


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/b9e0e605
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/b9e0e605
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/b9e0e605

Branch: refs/heads/master
Commit: b9e0e605f0fd0e13dcac0fd86b0c6946828b5a48
Parents: 45a5ff5
Author: Brian Geffon <br...@apache.org>
Authored: Mon Jul 14 13:07:55 2014 -0700
Committer: Brian Geffon <br...@apache.org>
Committed: Mon Jul 14 13:08:02 2014 -0700

----------------------------------------------------------------------
 iocore/eventsystem/P_IOBuffer.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/b9e0e605/iocore/eventsystem/P_IOBuffer.h
----------------------------------------------------------------------
diff --git a/iocore/eventsystem/P_IOBuffer.h b/iocore/eventsystem/P_IOBuffer.h
index 55b8add..2edfc79 100644
--- a/iocore/eventsystem/P_IOBuffer.h
+++ b/iocore/eventsystem/P_IOBuffer.h
@@ -734,12 +734,12 @@ inkcoreapi extern ClassAllocator<MIOBuffer> ioAllocator;
 TS_INLINE
 MIOBuffer::MIOBuffer(void *b, int64_t bufsize, int64_t aWater_mark)
 {
-  set(b, bufsize);
-  water_mark = aWater_mark;
-  size_index = BUFFER_SIZE_NOT_ALLOCATED;
 #ifdef TRACK_BUFFER_USER
   _location = NULL;
 #endif
+  set(b, bufsize);
+  water_mark = aWater_mark;
+  size_index = BUFFER_SIZE_NOT_ALLOCATED;
   return;
 }