rsys

Basic data structures and low-level features
git clone git://git.meso-star.fr/rsys.git
Log | Files | Refs | README | LICENSE

commit 9b9b09b5c0d4685dfd6cb0523849e24dbd0cb6c6
parent 6f83fb2bc916ec29f6113a3162862652591d352a
Author: vaplv <vaplv@free.fr>
Date:   Tue, 17 Nov 2015 12:46:19 +0100

Fix the str_get function

Return a mutable char*.

Diffstat:
Msrc/str.h | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/str.h b/src/str.h @@ -72,9 +72,10 @@ str_clear(struct str* str) str->cstr[0] = '\0'; } -static INLINE const char* +static INLINE char* str_get(struct str* str) { + ASSERT(str); return str->cstr; }