{
ber_int_options.lbo_valid = LBER_INITIALIZED;
- /* ignore p == NULL when not debugging */
if( p == NULL ) {
return;
}
ber_int_options.lbo_valid = LBER_INITIALIZED;
#ifdef LDAP_MEMORY_DEBUG
- /* catch s == 0 when debugging */
- assert( s );
+ assert( s != 0 );
#endif
- /* ignore s == 0 when not debugging */
if( s == 0 ) {
return NULL;
}
ber_int_options.lbo_valid = LBER_INITIALIZED;
#ifdef LDAP_MEMORY_DEBUG
- /* catch s,n == 0 when debugging */
- assert( n && s );
+ assert( n != 0 && s != 0);
#endif
- /* ignore s,n == 0 when not debugging */
if( n == 0 || s == 0 ) {
return NULL;
}
len = strlen( s ) + 1;
- if ( (p = (char *) LBER_MALLOC( len )) == NULL ) {
+ if ( (p = LBER_MALLOC( len )) == NULL ) {
return( NULL );
}