apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: apr/threadproc/os2 proc.c
Date Thu, 23 Aug 2001 16:42:27 GMT
bjh         01/08/23 09:42:27

  Modified:    threadproc/os2 proc.c
  Log:
  Ooops, test is redundant. We wouldn't get here if interpreter was 0 length.
  
  Revision  Changes    Path
  1.44      +1 -3      apr/threadproc/os2/proc.c
  
  Index: proc.c
  ===================================================================
  RCS file: /home/cvs/apr/threadproc/os2/proc.c,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- proc.c	2001/08/23 16:20:41	1.43
  +++ proc.c	2001/08/23 16:42:27	1.44
  @@ -361,9 +361,7 @@
               if (status == APR_SUCCESS) {
                   if (interpreter[0] == '#' && interpreter[1] == '!') {
                       /* delete newline */
  -                    if (interpreter[0]) {
  -                        interpreter[strlen(interpreter) - 1] = '\0';
  -                    }
  +                    interpreter[strlen(interpreter) - 1] = '\0';
   
                       if (interpreter[2] != '/' && interpreter[2] != '\\' &&
interpreter[3] != ':') {
                           char buffer[300];
  
  
  

Mime
View raw message