summaryrefslogtreecommitdiff
path: root/src/KM_util.h
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2007-01-19 08:58:05 +0000
committerjhurst <>2007-01-19 08:58:05 +0000
commit984de376d405e0b68e77d61558d4f798fa1170a5 (patch)
tree9767cbae4ad744b88285c8671af60b22c54dfa5d /src/KM_util.h
parentf0476a3789369459fb91076af4a29372d86d7622 (diff)
updated TEST_NULL debug macros
fixed ReadFileIntoString buffer bug
Diffstat (limited to 'src/KM_util.h')
-rwxr-xr-xsrc/KM_util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/KM_util.h b/src/KM_util.h
index f80f028..6b2e78e 100755
--- a/src/KM_util.h
+++ b/src/KM_util.h
@@ -381,10 +381,10 @@ namespace Kumu
inline ui32_t Capacity() const { return m_Capacity; }
// returns a const pointer to the essence data
- inline const byte_t* RoData() const { return m_Data; }
+ inline const byte_t* RoData() const { assert(m_Data); return m_Data; }
// returns a non-const pointer to the essence data
- inline byte_t* Data() { return m_Data; }
+ inline byte_t* Data() { assert(m_Data); return m_Data; }
// set the length of the buffer's contents
inline ui32_t Length(ui32_t l) { return m_Length = l; }