]> granicus.if.org Git - apache/commitdiff
fix more errors found by cppcheck
authorStefan Fritsch <sf@apache.org>
Mon, 5 Apr 2010 21:17:08 +0000 (21:17 +0000)
committerStefan Fritsch <sf@apache.org>
Mon, 5 Apr 2010 21:17:08 +0000 (21:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@930962 13f79535-47bb-0310-9956-ffa450edef68

modules/ldap/util_ldap.c
server/util_expr.c

index 713523698ac2bd7fc8c17843dd03e719f12d0217..3aa1d3cc1f6db5dcc8ef20ae862cca559dcb95d3 100644 (file)
@@ -231,10 +231,12 @@ static apr_status_t uldap_connection_cleanup(void *param)
  */
 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
index 3acc8a3182216e9edc48819bb44940ba158ab6cd..6d8329dfc9b934a21f781891fd1742a449fc28fd 100644 (file)
@@ -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, ...)