apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: apr/file_io/unix open.c
Date Mon, 30 Dec 2002 06:07:20 GMT
brianp      2002/12/29 22:07:20

  Modified:    file_io/unix open.c
  Log:
  Fix uninitialized variable dereference from a recent commit
  that was causing a segfault at httpd startup
  Submitted by:	Erik Abele <erik@codefaktor.de>
  Reviewed by:	Brian Pane
  
  Revision  Changes    Path
  1.104     +1 -1      apr/file_io/unix/open.c
  
  Index: open.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/unix/open.c,v
  retrieving revision 1.103
  retrieving revision 1.104
  diff -u -r1.103 -r1.104
  --- open.c	29 Dec 2002 20:52:45 -0000	1.103
  +++ open.c	30 Dec 2002 06:07:20 -0000	1.104
  @@ -146,7 +146,7 @@
   #endif
       
   #if APR_HAS_THREADS
  -    if ((flag & APR_BUFFERED) && ((*new)->flags & APR_XTHREAD)) {
  +    if ((flag & APR_BUFFERED) && (flag & APR_XTHREAD)) {
           rv = apr_thread_mutex_create(&thlock,
                                        APR_THREAD_MUTEX_DEFAULT, pool);
           if (rv) {
  
  
  

Mime
View raw message