[haiku-commits] haiku: hrev45382 - src/apps/activitymonitor

  • From: axeld@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 19 Mar 2013 00:57:59 +0100 (CET)

hrev45382 adds 1 changeset to branch 'master'
old head: 161400fbcccc3f8c5d1f5c1c132d262ae1e0a3da
new head: bc4dd456f98b23344169bd0c47e2e5b052f5539c
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=bc4dd45+%5E161400f

----------------------------------------------------------------------------

bc4dd45: ActivityMonitor: fixed minor issue CID 609788.
  
  * If the circular buffer was created with a size of zero, fBuffer would
    be freed without being initialized.

                                   [ Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev45382
Commit:      bc4dd456f98b23344169bd0c47e2e5b052f5539c
URL:         http://cgit.haiku-os.org/haiku/commit/?id=bc4dd45
Author:      Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
Date:        Mon Mar 18 23:56:47 2013 UTC

----------------------------------------------------------------------------

1 file changed, 4 insertions(+), 2 deletions(-)
src/apps/activitymonitor/CircularBuffer.h | 6 ++++--

----------------------------------------------------------------------------

diff --git a/src/apps/activitymonitor/CircularBuffer.h 
b/src/apps/activitymonitor/CircularBuffer.h
index 12ff3ad..6bce954 100644
--- a/src/apps/activitymonitor/CircularBuffer.h
+++ b/src/apps/activitymonitor/CircularBuffer.h
@@ -1,5 +1,5 @@
 /*
- * Copyright 2008-2009, Axel Dörfler, axeld@xxxxxxxxxxxxxxxx.
+ * Copyright 2008-2013, Axel Dörfler, axeld@xxxxxxxxxxxxxxxx.
  * Distributed under the terms of the MIT License.
  */
 #ifndef CIRCULAR_BUFFER_H
@@ -16,7 +16,8 @@ class CircularBuffer {
 public:
        CircularBuffer(size_t size)
                :
-               fSize(0)
+               fSize(0),
+               fBuffer(NULL)
        {
                SetSize(size);
        }
@@ -96,4 +97,5 @@ private:
        Type*           fBuffer;
 };
 
+
 #endif // CIRCULAR_BUFFER_H


Other related posts:

  • » [haiku-commits] haiku: hrev45382 - src/apps/activitymonitor - axeld