[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
controls.c line 1239
- To: openldap-devel@OpenLDAP.org
- Subject: controls.c line 1239
- From: Howard Chu <hyc@symas.com>
- Date: Thu, 12 May 2005 16:37:27 -0700
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050508
There's some very strange parenthesis nesting here
if ( (void *)(ctrl->ldctl_value.bv_val[2] != 0x00)) {
set_subentries_visibility( op );
}
casting the result of a comparison (which can only be 0 or 1) to a (void
*) surely isn't the intended behavior. What is this really supposed to do?
--
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
http://www.symas.com http://highlandsun.com/hyc
Symas: Premier OpenSource Development and Support