gui: Fix null pointer dereference in get_object_assert().
authorBen Pfaff <blp@gnu.org>
Thu, 11 Feb 2010 04:08:28 +0000 (20:08 -0800)
committerBen Pfaff <blp@gnu.org>
Sat, 20 Feb 2010 01:16:14 +0000 (17:16 -0800)
commit52c0bf3d116ca8bc1d0b77b51dbe253ce9b32688
tree021b46cf468239d2b2db3889984117d0678aa72d
parentb9c33df5fb3e621c641045ac90c211d33e2bf983
gui: Fix null pointer dereference in get_object_assert().

This function was checking whether o == NULL and then blindly
dereferencing it after it found it to be so.

Found by Clang (http://clang-analyzer.llvm.org).
src/ui/gui/helper.c