diff --git a/src/reputation.c b/src/reputation.c index 7e33eaccad..458ae8fb86 100644 --- a/src/reputation.c +++ b/src/reputation.c @@ -373,8 +373,6 @@ int SRepLoadCatFileFromFD(FILE *fp) if (line[0] == '\n' || line [0] == '\r' || line[0] == ' ' || line[0] == '#' || line[0] == '\t') continue; - while (isspace((unsigned char)line[--len])); - /* Check if we have a trailing newline, and remove it */ len = strlen(line); if (len == 0) @@ -433,8 +431,6 @@ int SRepLoadFileFromFD(SRepCIDRTree *cidr_ctx, FILE *fp) if (line[0] == '\n' || line [0] == '\r' || line[0] == ' ' || line[0] == '#' || line[0] == '\t') continue; - while (isspace((unsigned char)line[--len])); - /* Check if we have a trailing newline, and remove it */ len = strlen(line); if (len == 0)