mirror of https://github.com/containers/podman.git
When generating headers for search, we unconditionally access element 0 of an array, and I saw this segfault in our CI. There's no reason we have to do this, we're just going through it to get field names with reflect, so just make a new copy of the struct in question. Also, move this code, which is only for CLI display, into cmd/podman from libpod/image. Signed-off-by: Matthew Heon <mheon@redhat.com> |
||
|---|---|---|
| .. | ||
| testdata | ||
| docker_registry_options.go | ||
| errors.go | ||
| image.go | ||
| image_test.go | ||
| parts.go | ||
| parts_test.go | ||
| prune.go | ||
| pull.go | ||
| pull_test.go | ||
| search.go | ||
| signing_options.go | ||
| utils.go | ||