You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by hg...@apache.org on 2004/03/17 17:59:39 UTC
cvs commit: jakarta-tomcat-connectors/jk/native2/common jk_mutex_proc.c
hgomez 2004/03/17 08:59:39
Modified: jk/native2/common jk_mutex_proc.c
Log:
Avoid gcc warn about uninitialised st var.
BTW, what should be return is mutex is NULL ?
0 or - 1 ?
Revision Changes Path
1.7 +1 -1 jakarta-tomcat-connectors/jk/native2/common/jk_mutex_proc.c
Index: jk_mutex_proc.c
===================================================================
RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_mutex_proc.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- jk_mutex_proc.c 24 Feb 2004 08:44:40 -0000 1.6
+++ jk_mutex_proc.c 17 Mar 2004 16:59:39 -0000 1.7
@@ -53,7 +53,7 @@
jk_mutex_t *jkMutex=mutexB->object;
apr_proc_mutex_t *mutex=(apr_proc_mutex_t *)jkMutex->privateData;
- apr_status_t st;
+ apr_status_t st = 0;
if( mutex!= NULL )
st=apr_proc_mutex_destroy( mutex );
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org