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

Author: pd <[email protected]>
Committer: pd <[email protected]>
Date:   Thu Sep  1 10:26:05 2011 +0100

modules_k/sqlops: small bug fix to sqlops_get_value

---

 modules_k/sqlops/sql_api.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules_k/sqlops/sql_api.c b/modules_k/sqlops/sql_api.c
index 50e4140..d1a4f63 100644
--- a/modules_k/sqlops/sql_api.c
+++ b/modules_k/sqlops/sql_api.c
@@ -710,7 +710,7 @@ int sqlops_get_value(str *sres, int i, int j, sql_val_t 
**val)
                LM_ERR("row index out of bounds [%d/%d]\n", i, res->nrows);
                goto error;
        }
-       if(i>=res->ncols)
+       if(j>=res->ncols)
        {
                LM_ERR("column index out of bounds [%d/%d]\n", j, res->ncols);
                goto error;


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

Reply via email to