[prev in list] [next in list] [prev in thread] [next in thread] 

List:       serdev
Subject:    [sr-dev] git:master: db_postgres: fixed condition checking the parameter for db uri parsing
From:       Daniel-Constantin Mierla <miconda () gmail ! com>
Date:       2014-01-28 17:44:51
Message-ID: 20140128174451.36E78EF804E () rimmer ! ryngle ! com
[Download RAW message or body]

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


Author: Daniel-Constantin Mierla <miconda@gmail.com>
Committer: Daniel-Constantin Mierla <miconda@gmail.com>
Date:   Tue Jan 28 18:39:19 2014 +0100

db_postgres: fixed condition checking the parameter for db uri parsing

- on a report generated by cppcheck sent by David Binderman

---

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

diff --git a/modules/db_postgres/pg_uri.c b/modules/db_postgres/pg_uri.c
index 61accdc..0980d70 100644
--- a/modules/db_postgres/pg_uri.c
+++ b/modules/db_postgres/pg_uri.c
@@ -118,7 +118,7 @@ static int parse_postgres_uri(struct pg_uri* res, str* uri)
 
 	prev_token = 0;
 
-	if (!res || !res) {
+	if (!res || !uri) {
 		goto err;
 	}
 	


_______________________________________________
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic