diff options
author | Nalin Dahyabhai <nalin@redhat.com> | 2011-01-03 14:42:51 -0500 |
---|---|---|
committer | Nalin Dahyabhai <nalin@redhat.com> | 2011-01-03 14:42:51 -0500 |
commit | 7ca3fcc911f09ad474e1071c72f88302d2728f35 (patch) | |
tree | 5139a343cb6e1badd532535abfabc026e81f3c35 | |
parent | 0d0a9af02064a92912e462659fa6bd1f80c4a29a (diff) | |
download | slapi-nis-7ca3fcc911f09ad474e1071c72f88302d2728f35.tar.gz slapi-nis-7ca3fcc911f09ad474e1071c72f88302d2728f35.tar.xz slapi-nis-7ca3fcc911f09ad474e1071c72f88302d2728f35.zip |
- don't bother checking that list is not NULL -- if it is, that's a bug
in the caller (defect #10109)
-rw-r--r-- | src/format.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/format.c b/src/format.c index 60e49fa..798f461 100644 --- a/src/format.c +++ b/src/format.c @@ -359,9 +359,7 @@ format_add_ref_attr_list(struct format_ref_attr_list ***list, names, filters) != NULL) { return *list; } - for (i = 0; - (list != NULL) && (*list != NULL) && ((*list)[i] != NULL); - i++) { + for (i = 0; (*list != NULL) && ((*list)[i] != NULL); i++) { continue; } ret = malloc((i + 2) * sizeof(struct format_ref_attr_list*)); |