diff options
author | Toomas Soome <tsoome@me.com> | 2019-01-22 20:01:50 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2019-07-03 23:29:08 +0300 |
commit | 6e6545bfaed3bab9ce836ee82d1abd8f2edba89a (patch) | |
tree | 8f3807192676e3bbdceba66d1283217f055a1569 /usr/src/lib/nsswitch/ldap/common/getprinter.c | |
parent | f5f1a62e51e5e35359add22ba492c3e3a8f12654 (diff) | |
download | illumos-gate-6e6545bfaed3bab9ce836ee82d1abd8f2edba89a.tar.gz |
11169 nsswitch: NULL pointer errors
Reviewed by: C Fraire <cfraire@me.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/lib/nsswitch/ldap/common/getprinter.c')
-rw-r--r-- | usr/src/lib/nsswitch/ldap/common/getprinter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/lib/nsswitch/ldap/common/getprinter.c b/usr/src/lib/nsswitch/ldap/common/getprinter.c index 079741d61e..c24bb67320 100644 --- a/usr/src/lib/nsswitch/ldap/common/getprinter.c +++ b/usr/src/lib/nsswitch/ldap/common/getprinter.c @@ -212,7 +212,7 @@ _nss_ldap_printers2str(ldap_backend_ptr be, nss_XbyY_args_t *argp) * be backslashed plus ending ':' or ','. */ k = 0; - for (kp = attr->attrvalue[j]; *kp != NULL; kp++) + for (kp = attr->attrvalue[j]; *kp != '\0'; kp++) if (*kp == ':') /* count ':' in value */ k++; @@ -259,7 +259,7 @@ append_attr(char *buf, char *attr) } bp = buf; cp = attr; - while (*cp != NULL) { + while (*cp != '\0') { if (*cp == ':') { *bp++ = '\\'; } |