]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
don't use conditionals in macro arguments (ITS#4769)
authorPierangelo Masarati <ando@openldap.org>
Wed, 6 Dec 2006 11:39:07 +0000 (11:39 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 6 Dec 2006 11:39:07 +0000 (11:39 +0000)
servers/slapd/connection.c

index de20a07a86992057119cdf808fe78dee002f5961..ddaddd1a6089d9aefe7e6b7c6deb866183793cb3 100644 (file)
@@ -738,9 +738,11 @@ connection_destroy( Connection *c )
        if ( sd != AC_SOCKET_INVALID ) {
                slapd_remove( sd, sb, 1, 0, 0 );
 
-               Statslog( LDAP_DEBUG_STATS, (close_reason
-                                                                        ? "conn=%lu fd=%ld closed (%s)\n"
-                                                                        : "conn=%lu fd=%ld closed\n"),
+               if ( close_reason == NULL ) {
+                       close_reason = "";
+               }
+
+               Statslog( LDAP_DEBUG_STATS, "conn=%lu fd=%ld closed (%s)\n",
                        connid, (long) sd, close_reason, 0, 0 );
        }
 }