Prevent potential null pointer dereference
authorJames Groffen <james.groffen@dsto.defence.gov.au>
Fri, 8 Jan 2016 04:13:14 +0000 (14:43 +1030)
committerSimo Sorce <simo@redhat.com>
Mon, 11 Jan 2016 18:48:44 +0000 (13:48 -0500)
commitea848ec7ac001d2ea181e7f3e52c8c946cffd15c
tree261b96375f6ad650e94ddb4fe19b6342cf7df12b
parent7f11db955b8440668fc806b4203f584bb44f58c1
Prevent potential null pointer dereference

This commit adds checks to ensure cfg->name_attributes is not null before
it is used in mag_get_name_attributes.

(Reworded commit message)

Reviewed-by: Simo Sorce <simo@redhat.com>
Close #64
src/environ.c