]> git.sur5r.net Git - openldap/commitdiff
silence warning
authorPierangelo Masarati <ando@openldap.org>
Tue, 8 Apr 2003 23:39:56 +0000 (23:39 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 8 Apr 2003 23:39:56 +0000 (23:39 +0000)
servers/slapd/operation.c

index 9199e3310c4c53843d63e053eb0670558e560942..30ee7830a5520d7305032a393351723fb7ef77c3 100644 (file)
@@ -99,7 +99,7 @@ slap_op_alloc(
        Operation       *op;
 
        ldap_pvt_thread_mutex_lock( &slap_op_mutex );
-       if (op = LDAP_STAILQ_FIRST( &slap_free_ops )) {
+       if ((op = LDAP_STAILQ_FIRST( &slap_free_ops ))) {
                LDAP_STAILQ_REMOVE_HEAD( &slap_free_ops, o_next );
        }
        ldap_pvt_thread_mutex_unlock( &slap_op_mutex );