# HG changeset patch
# User Eric Hopper <hop...@omnifarious.org>
# Date 1240605517 25200
# Node ID 97768cd771be8ea7a4db8bd46998030dcd8c6650
# Parent  07c00814a3436ebd1d8628fa8c3c1d921523d1e5
Properly detect sense of should_check_environment and fix regression.

diff -r 07c00814a3436ebd1d8628fa8c3c1d921523d1e5 -r 
97768cd771be8ea7a4db8bd46998030dcd8c6650 event.c
--- a/event.c   Fri Apr 24 05:33:24 2009 -0700
+++ b/event.c   Fri Apr 24 13:38:37 2009 -0700
@@ -262,7 +262,7 @@
        base->evbase = NULL;
 
        should_check_environment =
-           cfg && (cfg->flags & EVENT_BASE_FLAG_IGNORE_ENV);
+           !(cfg && (cfg->flags & EVENT_BASE_FLAG_IGNORE_ENV));
 
        for (i = 0; eventops[i] && !base->evbase; i++) {
                if (cfg != NULL) {

Attachment: pgpRC4WD4WL6b.pgp
Description: PGP signature

_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users

Reply via email to