From 363f9d65dc79816ecee21ee5d0bad3c403680602 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Thu, 13 Aug 2009 11:07:24 -0700 Subject: [PATCH 1/1] 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 --- bti.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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"); -- 2.39.5