[sr-dev] git:master: db_mysql: fixed condition checking the parameter for db uri parsing

Daniel-Constantin Mierla miconda at gmail.com
Tue Jan 28 18:44:51 CET 2014


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
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

---

 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;
 	}
 	




More information about the sr-dev mailing list