Module: sip-router
Branch: 4.0
Commit: 20dcf53f2788e4931b87c342b7b831ad048ff2d8
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=20dcf53f2788e4931b87c342b7b831ad048ff2d8

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date:   Tue Jan 28 18:36:21 2014 +0100

db_mysql: fixed condition checking the parameter for db uri parsing

- on a report generated by cppcheck sent by David Binderman

(cherry picked from commit c0b2e567b2a27d5d29ede39409d6299f7d375d87)
(cherry picked from commit 75203caf1a7a8c582b8eaff67af891b00100f232)

---

 modules/db_mysql/my_uri.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/db_mysql/my_uri.c b/modules/db_mysql/my_uri.c
index 9a4357d..b4c5a51 100644
--- a/modules/db_mysql/my_uri.c
+++ b/modules/db_mysql/my_uri.c
@@ -113,7 +113,7 @@ static int parse_mysql_uri(struct my_uri* res, str* uri)
 
        prev_token = 0;
 
-       if (!res || !res) {
+       if (!res || !uri) {
                goto err;
        }
        


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to