(file) Return to CIMBuffer.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/CIMBuffer.cpp between version 1.2 and 1.3

version 1.2, 2008/11/12 21:10:20 version 1.3, 2008/11/13 19:39:17
Line 33 
Line 33 
     if (size < 1024)     if (size < 1024)
         size = 1024;         size = 1024;
  
   #if defined(PEGASUS_TEST_VALGRIND)
       // Valgrind complains that we leave uninitialized bytes in this buffer so
       // we clear all newly allocated memory when testing with Valgrind.
       _data = (char*)calloc(1, size);
   #else
     _data = (char*)malloc(size);     _data = (char*)malloc(size);
   #endif
  
     if (!_data)     if (!_data)
     {     {
Line 70 
Line 76 
  
     _end = _data + cap;     _end = _data + cap;
     _ptr = _data + m;     _ptr = _data + m;
   #if defined(PEGASUS_TEST_VALGRIND)
       // Valgrind complains that we leave uninitialized bytes in this buffer so
       // we clear all newly allocated memory when testing with Valgrind.
       memset(_ptr, 0, _end - _ptr);
   #endif
 } }
  
 bool CIMBuffer::getString(String& x) bool CIMBuffer::getString(String& x)


Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2