Lines Matching refs:NULL
52 assert(e != NULL);
53 assert(ehdr != NULL);
100 if ((scn = _libelf_allocate_scn(e, i)) == NULL)
129 if (e == NULL || e->e_kind != ELF_K_ELF ||
132 return (NULL);
135 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL)
136 return (NULL);
141 return (NULL);
148 return (NULL);
154 if (s == NULL) {
168 if (e == NULL || e->e_kind != ELF_K_ELF) {
170 return (NULL);
175 return (NULL);
178 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL)
179 return (NULL);
194 return (NULL);
199 NULL)
200 return (NULL);
206 if ((scn = _libelf_allocate_scn(e, e->e_u.e_elf.e_nscn)) == NULL)
207 return (NULL);
219 if (e == NULL || (e->e_kind != ELF_K_ELF) ||
222 return (NULL);
225 return (s == NULL ? elf_getscn(e, (size_t) 1) :