aboutsummaryrefslogtreecommitdiff
path: root/project/dclib/dclib-regex.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--project/dclib/dclib-regex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/project/dclib/dclib-regex.c b/project/dclib/dclib-regex.c
index f879566..3ee51bf 100644
--- a/project/dclib/dclib-regex.c
+++ b/project/dclib/dclib-regex.c
@@ -340,6 +340,7 @@ int ReplaceRegex
return -ERR_INVALID_DATA;
ClearFastBuf(res);
+ res->buf[0] = 0;
if ( !re || !re->valid )
return -ERR_INVALID_DATA;