httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r930962 - in /httpd/httpd/trunk: modules/ldap/util_ldap.c server/util_expr.c
Date Mon, 05 Apr 2010 21:17:12 GMT
Author: sf
Date: Mon Apr  5 21:17:08 2010
New Revision: 930962

URL: http://svn.apache.org/viewvc?rev=930962&view=rev
Log:
fix more errors found by cppcheck

Modified:
    httpd/httpd/trunk/modules/ldap/util_ldap.c
    httpd/httpd/trunk/server/util_expr.c

Modified: httpd/httpd/trunk/modules/ldap/util_ldap.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ldap/util_ldap.c?rev=930962&r1=930961&r2=930962&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ldap/util_ldap.c (original)
+++ httpd/httpd/trunk/modules/ldap/util_ldap.c Mon Apr  5 21:17:08 2010
@@ -231,10 +231,12 @@ static apr_status_t uldap_connection_cle
  */
 static apr_status_t util_ldap_connection_remove (void *param) { 
     util_ldap_connection_t *ldc = param, *l  = NULL, *prev = NULL;
-    util_ldap_state_t *st = ldc->st;
+    util_ldap_state_t *st;
 
     if (!ldc) return APR_SUCCESS;
 
+    st = ldc->st;
+
     uldap_connection_unbind(ldc);
 
 #if APR_HAS_THREADS

Modified: httpd/httpd/trunk/server/util_expr.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util_expr.c?rev=930962&r1=930961&r2=930962&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util_expr.c (original)
+++ httpd/httpd/trunk/server/util_expr.c Mon Apr  5 21:17:08 2010
@@ -44,7 +44,7 @@
 } while(0)
 
 #define CREATE_NODE(pool,name) do {                          \
-    (name) = apr_pcalloc(pool, sizeof(*(name)));
+    (name) = apr_pcalloc(pool, sizeof(*(name)));             \
 } while(0)
 
 static void debug_printf(request_rec *r, const char *fmt, ...)



Mime
View raw message