Skip to content

Commit

Permalink
Fixed gcc bug when using optimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen committed Dec 9, 2011
1 parent 84dacef commit 542f8f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
OWNER=root
GROUP=root
CC=gcc
CFLAGS=-O2 -Wall
CFLAGS=-O2 -Wall -fno-tree-vrp
LIBS=-ldb
SBINDIR=/usr/sbin

Expand Down
2 changes: 1 addition & 1 deletion squidguard.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ int squidguard_backend(FILE *sg_fd[2], char srcip[15], char url[URL_SIZE], int d
char redirect_url[URL_SIZE];

fprintf(sg_fd[1], "%s %s/ - - GET\n", url, srcip);
fflush(NULL);
fflush(sg_fd[1]);
while (fgets(redirect_url, URL_SIZE, sg_fd[0]) != NULL) {
redirect_url[strlen(redirect_url) - 1] = '\0';
if (debug > 1)
Expand Down

0 comments on commit 542f8f2

Please sign in to comment.