diff --git a/libc3/str.c b/libc3/str.c
index fc92bd7..90f1750 100644
--- a/libc3/str.c
+++ b/libc3/str.c
@@ -130,6 +130,7 @@ s_str * str_init_alloc (s_str *str, uw size, const char *p)
tmp.size = size;
tmp.ptr.p = tmp.free.p;
memcpy(tmp.free.p, p, size);
+ *str = tmp;
return str;
}