summaryrefslogtreecommitdiff
path: root/res/res_odbc.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2006-09-21 23:29:32 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2006-09-21 23:29:32 +0000
commit859bc68383b66088d4b044017a7cde73ac09b1a3 (patch)
tree9afd0a52f57b2bd33c5a12557a9ee29f612199ea /res/res_odbc.c
parente406a2478a1b9783ee74f2bb501f9a82b08715e9 (diff)
Merged revisions 43464 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r43464 | tilghman | 2006-09-21 18:24:41 -0500 (Thu, 21 Sep 2006) | 2 lines Twould help if we actually documented how the new features in res_odbc actually work. (Oops) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43465 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_odbc.c')
-rw-r--r--res/res_odbc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/res/res_odbc.c b/res/res_odbc.c
index 33836aa8d..e8f81ba4d 100644
--- a/res/res_odbc.c
+++ b/res/res_odbc.c
@@ -235,7 +235,8 @@ static int load_odbc_config(void)
limit = 0;
for (v = ast_variable_browse(config, cat); v; v = v->next) {
if (!strcasecmp(v->name, "pooling")) {
- pooling = 1;
+ if (ast_true(v->value))
+ pooling = 1;
} else if (!strcasecmp(v->name, "limit")) {
sscanf(v->value, "%d", &limit);
if (ast_true(v->value) && !limit) {