dreid       99/11/03 08:01:53

  Modified:    src/lib/apr/threadproc/beos proc.c
  Log:
  This allows ap_create_process to work again...
  
  Revision  Changes    Path
  1.10      +4 -5      apache-2.0/src/lib/apr/threadproc/beos/proc.c
  
  Index: proc.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/threadproc/beos/proc.c,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- proc.c    1999/11/03 07:29:05     1.9
  +++ proc.c    1999/11/03 16:01:53     1.10
  @@ -67,7 +67,6 @@
        int in;
        int out;
        int err;
  -     char ** envp;
   };
   
   ap_status_t ap_createprocattr_init(struct procattr_t **new, ap_context_t 
*cont)
  @@ -192,10 +191,9 @@
        sp->in  = attr->child_in?attr->child_in->filedes:-1;
        sp->out = attr->child_out?attr->child_out->filedes:-1;
        sp->err = attr->child_err?attr->child_err->filedes:-1;
  -     sp->envp = env;
  -     
  +
       i = 0;
  -    while (args[i]) {
  +    while (args && args[i]) {
           i++;
       }
   
  @@ -212,7 +210,8 @@
        }
        newargs[2] = strdup(progname);
        i=0;nargs = 3;
  -     while (args[i]) {
  +
  +     while (args && args[i]) {
                newargs[nargs] = args[i];
                i++;nargs++;
        }
  
  
  

Reply via email to