diff --git a/src/sample.c b/src/sample.c index 8a0a66b8c..50ae76b6e 100644 --- a/src/sample.c +++ b/src/sample.c @@ -2596,13 +2596,14 @@ found: if (!smp->data.u.str.data) return 1; - smp->data.u.str.area = start; /* Compute remaining size if needed Note: smp->data.u.str.size cannot be set to 0 */ if (smp->data.u.str.size) smp->data.u.str.size -= start - smp->data.u.str.area; + smp->data.u.str.area = start; + return 1; }