Skip to content

Commit d5deb54

Browse files
committed
Remove unnecessary NULL check
Addressing: /home/jcerny/openscap/src/OVAL/probes/SEAP/sexp-manip.c: In function ‘SEXP_datatype_set_nth’: /home/jcerny/openscap/src/OVAL/probes/SEAP/sexp-manip.c:1921:27: warning: nonnull argument ‘name’ compared to NULL [-Wnonnull-compare] if (list == NULL || name == NULL) {
1 parent 89e77aa commit d5deb54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OVAL/probes/SEAP/sexp-manip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1918,7 +1918,7 @@ int SEXP_datatype_set_nth (SEXP_t *list, uint32_t n, const char *name)
19181918
SEXP_val_t v_dsc;
19191919
SEXP_t *s_nth;
19201920

1921-
if (list == NULL || name == NULL) {
1921+
if (list == NULL) {
19221922
errno = EFAULT;
19231923
return -1;
19241924
}

0 commit comments

Comments
 (0)