]> ToastFreeware Gitweb - gregoa/bti.git/commitdiff
fix crash when --debug is set
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 13 Aug 2009 18:07:24 +0000 (11:07 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 13 Aug 2009 18:07:24 +0000 (11:07 -0700)
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 <gregkh@suse.de>
bti.c

diff --git a/bti.c b/bti.c
index 02332c46ccc84c0e7a09aab86ae70fccc2c24ddd..a9a6d435bd89a2e7ee34397cf503953d933dd34b 100644 (file)
--- 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");