]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Removed the duplicate file opening that resulted in a resource leak.
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Fri, 26 Jun 2009 12:02:26 +0000 (12:02 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Fri, 26 Jun 2009 12:02:26 +0000 (12:02 +0000)
squidguard_log.c

index 2f2fcfa23ed1fed8563c996b4e8814e7e9a100a1..68f0a87abcecf36c5697bb3c9ab1b93f8e21ded6 100644 (file)
@@ -83,11 +83,6 @@ void read_log(char *wentp, FILE *fp_ou)
        exit(EXIT_FAILURE);
    }
 
-   if ((fp_in=fopen(wentp,"r"))==NULL) {
-         fprintf(stderr, "SARG: (squidguard) %s: %s\n",text[8],wentp);
-       exit(1);
-   }
-   
    if ((fp_in=fopen(wentp,"r"))==NULL) {
       fprintf(stderr, "SARG: (squidguard) %s: %s\n",text[8],wentp);
       exit(1);