diff options
author | Toomas Soome <tsoome@me.com> | 2019-01-21 11:21:40 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2019-06-18 21:24:17 +0300 |
commit | 344db6f401efe76f7e1d4f4c1a644ae593910219 (patch) | |
tree | 5335c1697bc1d14a219e66501d6e0ed73b0c0b59 /usr/src/lib/libnsl/netselect/netselect.c | |
parent | e86c3f00315e5838c0ec0b14f34b94c292085956 (diff) | |
download | illumos-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.c | 2 |
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 != ':') |