Fixes to Coverity erros 75748 and 76132.

This commit is contained in:
Markus Makela
2014-11-11 13:42:12 +02:00
parent 97934ed96a
commit 9cb2be9605
2 changed files with 4 additions and 4 deletions

View File

@ -57,7 +57,7 @@ int main(int argc, char** argv)
{
fgets(readbuff,4092,infile);
psize = strlen(readbuff);
if(psize < 0 || psize > 4092){
if(psize > 4092){
continue;
}
qbuff = gwbuf_alloc(psize + 7);