summaryrefslogtreecommitdiff
path: root/libpod/util_linux.go
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2019-03-14 13:19:04 -0400
committerMatthew Heon <mheon@redhat.com>2019-04-03 15:11:08 -0400
commitc6255537d9b65326a3bdd1856f700425ecb71367 (patch)
tree1f3ea92700b4abc54050b1684ff267182475ba8f /libpod/util_linux.go
parent662ae6c0edd65db396c184c288fa93fce8023879 (diff)
downloadpodman-c6255537d9b65326a3bdd1856f700425ecb71367.tar.gz
podman-c6255537d9b65326a3bdd1856f700425ecb71367.tar.bz2
podman-c6255537d9b65326a3bdd1856f700425ecb71367.zip
Fix a potential segfault in podman search
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>
Diffstat (limited to 'libpod/util_linux.go')
0 files changed, 0 insertions, 0 deletions