diff options
author | John Levon <john.levon@joyent.com> | 2018-12-18 20:00:45 +0000 |
---|---|---|
committer | John Levon <john.levon@joyent.com> | 2019-02-12 10:07:32 +0000 |
commit | 2385a4422808a5effb54aad5f1e17f0fd1ed7f84 (patch) | |
tree | 81c3b82af98cc63f0f176bb87b7408cd6bdbe3a6 | |
parent | 933ae53f0bf0708d7bf2756d3f21936a0d5fad82 (diff) | |
download | illumos-joyent-2385a4422808a5effb54aad5f1e17f0fd1ed7f84.tar.gz |
10110 get_tz_countries shouldn't check array for NULL
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r-- | usr/src/lib/libzoneinfo/common/libzone.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr/src/lib/libzoneinfo/common/libzone.c b/usr/src/lib/libzoneinfo/common/libzone.c index a2120bb2a0..b21b22eaa5 100644 --- a/usr/src/lib/libzoneinfo/common/libzone.c +++ b/usr/src/lib/libzoneinfo/common/libzone.c @@ -24,7 +24,9 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" +/* + * Copyright (c) 2018, Joyent, Inc. + */ #include <stdlib.h> #include <stdio.h> @@ -211,10 +213,6 @@ get_tz_countries(struct tz_country **country, struct tz_continent *cont) int cmp, status; size_t len, len_coord, len_ctnt; - if (cont->ctnt_name == NULL) { - errno = EINVAL; - return (-1); - } len_ctnt = strlen(cont->ctnt_name); ccbuf[0] = '\0'; |