caf: avoid NULL dereference

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
sd2: fix use-after-free

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
src/sd2.c  Whitespace fix.