11382 ldap: NULL pointer errors

Review Request #2105 - Created July 10, 2019 and submitted

Information
Toomas Soome
illumos-gate
11382
27899e0...
Reviewers
general
../ns_ldap/ldapaddent.c: In function 'encode_network':
../ns_ldap/ldapaddent.c:147:19: error: comparison between pointer and integer [-Werror]
  while ((c = *cp) != NULL) {
                   ^~

../ns_ldap/ldaplist.c: In function 'main':
../ns_ldap/ldaplist.c:491:53: error: comparison between pointer and integer [-Werror]
  if (database && (strcasecmp(database, "publickey") == NULL)) {
                                                     ^~
cc1: all warnings being treated as errors

  
Andrew Stormont
Peter Tribble
Andy Fiddaman
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...