X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=libcitadel%2Flib%2Fstringbuf.c;h=dfba39d7e13e904ffc202186139a53a90bdfc40f;hp=6d8f549d371d2e00aac73d2e945f004d6564d635;hb=d4f0059a151fb3340cb9518a6981282831abb7ed;hpb=3de7cf767571d26d4f4852577b080f9264d34f91 diff --git a/libcitadel/lib/stringbuf.c b/libcitadel/lib/stringbuf.c index 6d8f549d3..dfba39d7e 100644 --- a/libcitadel/lib/stringbuf.c +++ b/libcitadel/lib/stringbuf.c @@ -1502,6 +1502,8 @@ int StrBufExtract_NextToken(StrBuf *dest, const StrBuf *Source, const char **pSt (Source->BufUsed == 0) ) { *pStart = StrBufNOTNULL; + if (dest != NULL) + FlushStrBuf(dest); return -1; }