summaryrefslogtreecommitdiff
path: root/usr/src/lib/libnsl/netselect/netselect.c
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2019-01-21 11:21:40 +0200
committerToomas Soome <tsoome@me.com>2019-06-18 21:24:17 +0300
commit344db6f401efe76f7e1d4f4c1a644ae593910219 (patch)
tree5335c1697bc1d14a219e66501d6e0ed73b0c0b59 /usr/src/lib/libnsl/netselect/netselect.c
parente86c3f00315e5838c0ec0b14f34b94c292085956 (diff)
downloadillumos-joyent-344db6f401efe76f7e1d4f4c1a644ae593910219.tar.gz
11092 libnsl: NULL pointer errors
Reviewed by: Norm Jacobs <naj@snapcon.com> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/lib/libnsl/netselect/netselect.c')
-rw-r--r--usr/src/lib/libnsl/netselect/netselect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/lib/libnsl/netselect/netselect.c b/usr/src/lib/libnsl/netselect/netselect.c
index 41dfa4909a..7225fa86a6 100644
--- a/usr/src/lib/libnsl/netselect/netselect.c
+++ b/usr/src/lib/libnsl/netselect/netselect.c
@@ -463,7 +463,7 @@ setnetpath(void)
/* Skip all leading ':'s */
while (*tp && *tp == ':')
tp++;
- if (*tp == NULL)
+ if (*tp == '\0')
break; /* last one */
netid = tp;
while (*tp && *tp != ':')