diff options
author | Davyd Madeley <davyd@madeley.id.au> | 2009-09-01 12:11:47 +0800 |
---|---|---|
committer | Davyd Madeley <davyd@madeley.id.au> | 2009-09-01 12:11:47 +0800 |
commit | 577518e4c14b563c32d8486592f2c670acb9b857 (patch) | |
tree | 9d4134975a39be68f0b826dfa163c2744ee76a1d /shave.in | |
parent | 08c465a2d1b55d42834d338c562e7fde42273d0f (diff) | |
download | gsoc2013-empathy-577518e4c14b563c32d8486592f2c670acb9b857.tar gsoc2013-empathy-577518e4c14b563c32d8486592f2c670acb9b857.tar.gz gsoc2013-empathy-577518e4c14b563c32d8486592f2c670acb9b857.tar.bz2 gsoc2013-empathy-577518e4c14b563c32d8486592f2c670acb9b857.tar.lz gsoc2013-empathy-577518e4c14b563c32d8486592f2c670acb9b857.tar.xz gsoc2013-empathy-577518e4c14b563c32d8486592f2c670acb9b857.tar.zst gsoc2013-empathy-577518e4c14b563c32d8486592f2c670acb9b857.zip |
[empathy_builder_get_file] NULL out passed GObj ptrs if GtkBuilder file broken
If the GtkBuilder file passed to empathy_builder_get_file is broken, it
returns NULL, but doesn't touch the contents of any pointers passed to retrieve
GObjects. In several places we start using these pointers without checking
whether the file was actually setup, which causes Empathy to crash.
Ideally callers of empathy_builder_get_file() should check whether or not
the function returned correctly before using any of the passed pointers, but
in case they don't, make sure we're not passing pointers to random memory.
Diffstat (limited to 'shave.in')
0 files changed, 0 insertions, 0 deletions