Get rid of TDS warning
authorMark Spencer <markster@digium.com>
Sun, 1 Aug 2004 03:53:34 +0000 (03:53 +0000)
committerMark Spencer <markster@digium.com>
Sun, 1 Aug 2004 03:53:34 +0000 (03:53 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3558 65c4cc65-6c06-0410-ace0-fbb531ad65f3

cdr/cdr_tds.c

index 35e99b4..d4c4eaf 100755 (executable)
@@ -322,7 +322,7 @@ static char *anti_injection(const char *str, int len)
        /* Erase known bad input */
        for (idx=0; *known_bad[idx]; idx++)
        {
-               while(srh_ptr = stristr(buf, known_bad[idx])) /* fix me! */
+               while((srh_ptr = stristr(buf, known_bad[idx]))) /* fix me! */
                {
                        memmove(srh_ptr, srh_ptr+strlen(known_bad[idx]), strlen(srh_ptr+strlen(known_bad[idx]))+1);
                }