telepathy: improve error handling for _finish() calls
commit69fcfd7577dec1244a7a5888184290bd3696b773
authorStefan Becker <chemobejk@gmail.com>
Wed, 29 Aug 2012 18:44:00 +0000 (29 21:44 +0300)
committerStefan Becker <chemobejk@gmail.com>
Thu, 30 Aug 2012 19:04:33 +0000 (30 22:04 +0300)
tree3b80e7b1ba6335a50c7694923bfcfa9349762768
parenteab45122b421fcf9551bfe6b6aa76b1e795c410e
telepathy: improve error handling for _finish() calls

In corner cases _finish() uses g_return_val_if_fail() before
initializing the GError. So we should always check the return code for
failure and then only use the GError contents if it is valid.
src/telepathy/telepathy-connection.c
src/telepathy/telepathy-transport.c