Fix two potential NULL pointer dereferences in dissect.c
commit3a4fdb5865f8ded10b51dc06631c30710d104a6c
authorJosh Triplett <josh@freedesktop.org>
Sat, 10 Mar 2007 19:10:42 +0000 (10 11:10 -0800)
committerJosh Triplett <josh@freedesktop.org>
Sat, 10 Mar 2007 19:11:32 +0000 (10 11:11 -0800)
tree1cc59671b80bf8d641bfad4154817e3d486abd70
parente7680876c48d0f5470b72f3f51fa13f72122b19e
Fix two potential NULL pointer dereferences in dissect.c

mk_name in dissect.c used ?: to check for NULL pointers in two arguments of an
snprintf call, but then just dereferenced the pointers in the other two parts
of the same call.

Thanks to Florian Krohm of IBM for reporting the problem.

Signed-off-by: Josh Triplett <josh@freedesktop.org>
dissect.c