]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
libsubid_zzz (test): fix pointer test
authorSerge Hallyn <serge@hallyn.com>
Sun, 26 Dec 2021 17:55:01 +0000 (11:55 -0600)
committerSerge Hallyn <serge@hallyn.com>
Mon, 27 Dec 2021 15:26:55 +0000 (09:26 -0600)
Signed-off-by: Serge Hallyn <serge@hallyn.com>
tests/libsubid/04_nss/libsubid_zzz.c

index d9ca949f98a4239f84b23ed5e0bcf87a1fdc82f7..957e25e85220a40b56d0c4513d062a7307fa37d4 100644 (file)
@@ -122,7 +122,7 @@ enum subid_status shadow_subid_list_owner_ranges(const char *owner, enum subid_t
        if (id_type == ID_TYPE_UID && strcmp(owner, "group1") == 0)
                return SUBID_STATUS_SUCCESS;
        ranges = (struct subid_range *)malloc(sizeof(struct subid_range));
-       if (!*ranges)
+       if (!ranges)
                return SUBID_STATUS_ERROR;
        if (strcmp(owner, "user1") == 0 || strcmp(owner, "group1") == 0) {
                ranges[0].start = 100000;