coverity: don't deref null c

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>