string clear check

This commit is contained in:
q66 2015-08-05 21:58:06 +01:00
parent 4f23017594
commit 8ba91c12fe

View file

@ -331,6 +331,7 @@ public:
}
void clear() {
if (!p_len) return;
p_len = 0;
*p_buf.first() = '\0';
}