[empathy: 42/65] Assert when we have an invalid pointer
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 42/65] Assert when we have an invalid pointer
- Date: Tue, 24 Aug 2010 13:29:59 +0000 (UTC)
commit f735801461c5748ee212eaba80c894f33ecf3f10
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Aug 18 16:11:20 2010 +0200
Assert when we have an invalid pointer
libempathy/empathy-tls-verifier.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-tls-verifier.c b/libempathy/empathy-tls-verifier.c
index b71e548..5ed9bb9 100644
--- a/libempathy/empathy-tls-verifier.c
+++ b/libempathy/empathy-tls-verifier.c
@@ -83,6 +83,8 @@ verification_output_to_reason (gint res,
{
gboolean retval = TRUE;
+ g_assert (reason != NULL);
+
if (res != GNUTLS_E_SUCCESS)
{
retval = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]