X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Fstring.c;h=49fe58f0f0e302fd62f07eaab9919792ea9bf55b;hb=dbb89a64da5651cf8d61524f6cd5cd083f99a570;hp=8f6906a8ac70b87a09f482651e7213199e28b4a8;hpb=3c598e89fb34a892d369a138daa8c3314294493c;p=openldap diff --git a/libraries/libldap/string.c b/libraries/libldap/string.c index 8f6906a8ac..49fe58f0f0 100644 --- a/libraries/libldap/string.c +++ b/libraries/libldap/string.c @@ -1,7 +1,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2004 The OpenLDAP Foundation. + * Copyright 1998-2014 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -126,7 +126,7 @@ ldap_pvt_str2upperbv( char *str, struct berval *bv ) { char *s = NULL; - assert( bv ); + assert( bv != NULL ); /* to upper */ if ( str ) { @@ -161,7 +161,7 @@ ldap_pvt_str2lowerbv( char *str, struct berval *bv ) { char *s = NULL; - assert( bv ); + assert( bv != NULL ); /* to lower */ if ( str ) {