Remove a harmless but pointless line in the code to handle the --user argument.
authorFabian Keil <fk@fabiankeil.de>
Tue, 26 Apr 2011 16:50:11 +0000 (16:50 +0000)
committerFabian Keil <fk@fabiankeil.de>
Tue, 26 Apr 2011 16:50:11 +0000 (16:50 +0000)
If p is not NULL, --p already has been set to '\0' previously
and it hadn't, it would be too late now as we are done with p.

jcc.c

diff --git a/jcc.c b/jcc.c
index be1840f..4794318 100644 (file)
--- a/jcc.c
+++ b/jcc.c
@@ -1,4 +1,4 @@
-const char jcc_rcs[] = "$Id: jcc.c,v 1.346 2011/04/26 16:48:04 fabiankeil Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 1.347 2011/04/26 16:48:56 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/jcc.c,v $
@@ -2963,8 +2963,6 @@ int main(int argc, char **argv)
          {
             log_error(LOG_LEVEL_FATAL, "User '%s' not found.", argv[argc_pos]);
          }
-
-         if (p != NULL) *--p = '\0';
       }
 
       else if (strcmp(argv[argc_pos], "--pre-chroot-nslookup" ) == 0)