From b81a0285fbb090b7f73b306cf718df6fe8424b38 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?=
 <rafael.carre@savoirfairelinux.com>
Date: Fri, 8 Jul 2011 12:11:28 -0400
Subject: [PATCH] * #6392: no need to check for account NULLity since it is
 dereferenced above

bug found by cppcheck
---
 sflphone-common/src/sip/sipvoiplink.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sflphone-common/src/sip/sipvoiplink.cpp b/sflphone-common/src/sip/sipvoiplink.cpp
index 0f3c9e181f..524f370233 100644
--- a/sflphone-common/src/sip/sipvoiplink.cpp
+++ b/sflphone-common/src/sip/sipvoiplink.cpp
@@ -3688,8 +3688,7 @@ void registration_cb (struct pjsip_regc_cbparam *param)
 
 
         // TODO: there id a race condition for this ressource when closing the application
-        if (account)
-            account->setRegistrationStateDetailed (details);
+        account->setRegistrationStateDetailed (details);
     }
 
     if (param->status == PJ_SUCCESS) {
-- 
GitLab