martin      99/10/07 14:48:31

  Modified:    src/main http_main.c
  Log:
  ap_server_argv0 was undefined. Use a simple default (basename(argv[0]))
  
  Revision  Changes    Path
  1.15      +9 -0      apache-2.0/src/main/http_main.c
  
  Index: http_main.c
  ===================================================================
  RCS file: /export/home/cvs/apache-2.0/src/main/http_main.c,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- http_main.c       1999/10/07 20:47:53     1.14
  +++ http_main.c       1999/10/07 21:48:30     1.15
  @@ -289,6 +289,15 @@
       ap_context_t *ptemp;             /* Pool for temporary config stuff */
       ap_context_t *pcommands;         /* Pool for -C and -c switches */
   
  +#ifndef WIN32
  +    if ((ap_server_argv0 = strrchr(argv[0], '/')) != NULL)
  +#else
  +    if ((ap_server_argv0 = strrchr(argv[0], '\\')) != NULL)
  +#endif
  +        ++ap_server_argv0;
  +    else
  +     ap_server_argv0 = argv[0];
  +
       ap_util_uri_init();
   
       g_pHookPool=pglobal;
  
  
  

Reply via email to