clobbered by vfork maybe(?) warns gcc, I can’t agree or disagree
authormirabilos <m@mirbsd.org>
Fri, 1 Dec 2017 22:24:28 +0000 (23:24 +0100)
committermirabilos <m@mirbsd.org>
Fri, 1 Dec 2017 22:24:28 +0000 (23:24 +0100)
ublock.c

index 01d6220..d65e9b6 100644 (file)
--- a/ublock.c
+++ b/ublock.c
@@ -959,7 +959,7 @@ static int dofilt(BW *bw, unsigned char *s, void *object, int *notify)
 {
        int fr[2];
        int fw;
-       int flg = 0;
+       volatile int flg = 0;
        unsigned char *tf;
        const char *sh;
 #if defined(HAVE_PUTENV) && (WANT_FORK || defined(HAVE_UNSETENV))