11166 libnisdb: NULL pointer errors
Review Request #1951 — Created June 1, 2019 and submitted
Information | |
---|---|
tsoome | |
illumos-gate | |
11166 | |
1a33c63... | |
Reviewers | |
general | |
ldap_xdr.c: In function 'xdr_nis_name_abbrev': ldap_xdr.c:120:15: error: comparison between pointer and integer [-Werror] if ((buf[0] == NULL) || buf[strlen(buf) - 1] == '.') { ^~ nis_parse_ldap_util.c: In function 'free_table_mapping': nis_parse_ldap_util.c:293:27: error: comparison between pointer and integer [-Werror] if (mapping->commentChar != NULL) ^~ nis_parse_ldap_util.c:294:24: error: assignment makes integer from pointer without a cast [-Werror=int-conversion] mapping->commentChar = NULL; ^ nis_parse_ldap_map.c: In function 'add_mapping_attribute': nis_parse_ldap_map.c:214:29: error: assignment makes integer from pointer without a cast [-Werror=int-conversion] t_mapping->commentChar = NULL; ^ cc1: all warnings being treated as errors