Skip to content

Commit

Permalink
Correct DEBUG env check
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Sep 2, 2016
1 parent 1b8630c commit 92ca614
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -956,9 +956,9 @@ int fr_fault_setup(char const *cmd, char const *program)
* signal handlers are installed or not.
*/
env = getenv("DEBUG");
if (!env || (strcmp(env, "no") == 0)) {
if (!env || (strcmp(env, "yes") == 0)) {
debug_state = DEBUG_STATE_NOT_ATTACHED;
} else if (!strcmp(env, "auto") || !strcmp(env, "yes")) {
} else if (strcmp(env, "auto") == 0) {
/*
* Figure out if we were started under a debugger
*/
Expand Down

0 comments on commit 92ca614

Please sign in to comment.