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 3, 2016
1 parent b93e117 commit 9cefbac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/debug.c
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 9cefbac

Please sign in to comment.