From: Greg Kroah-Hartman Date: Thu, 13 Aug 2009 18:07:24 +0000 (-0700) Subject: fix crash when --debug is set X-Git-Url: https://git.toastfreeware.priv.at/gregoa/bti.git/commitdiff_plain/363f9d65dc79816ecee21ee5d0bad3c403680602?hp=3132627d3a3c045b9a94534afd024777a0f79919 fix crash when --debug is set The group should not be printed out at startup if debug is set, as it is not always set. This came in in the "add group support" patch, it was probably used for debugging that code. Signed-off-by: Greg Kroah-Hartman --- diff --git a/bti.c b/bti.c index 02332c4..a9a6d43 100644 --- a/bti.c +++ b/bti.c @@ -1114,10 +1114,8 @@ int main(int argc, char *argv[], char *envp[]) * Show the version to make it easier to determine what * is going on here */ - if (debug) { + if (debug) display_version(); - fprintf(stderr, "%s", session->group); - } if (session->action == ACTION_UNKNOWN) { fprintf(stderr, "Unknown action, valid actions are:\n");