[asterisk-commits] anthonyl: branch anthonyl/config-extconfigspace
r50030 - /team/anthonyl/confi...
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Jan 8 11:05:18 MST 2007
Author: anthonyl
Date: Mon Jan 8 12:05:17 2007
New Revision: 50030
URL: http://svn.digium.com/view/asterisk?view=rev&rev=50030
Log:
add support for spaces before the first quotation mark for the database param in extconfig.conf
Modified:
team/anthonyl/config-extconfigspace/main/config.c
Modified: team/anthonyl/config-extconfigspace/main/config.c
URL: http://svn.digium.com/view/asterisk/team/anthonyl/config-extconfigspace/main/config.c?view=diff&rev=50030&r1=50029&r2=50030
==============================================================================
--- team/anthonyl/config-extconfigspace/main/config.c (original)
+++ team/anthonyl/config-extconfigspace/main/config.c Mon Jan 8 12:05:17 2007
@@ -1103,7 +1103,7 @@
{
struct ast_config *config, *configtmp;
struct ast_variable *v;
- char *driver, *table, *database, *stringp;
+ char *driver, *table, *database, *stringp, *tmpstr;
clear_config_maps();
@@ -1118,7 +1118,10 @@
for (v = ast_variable_browse(config, "settings"); v; v = v->next) {
stringp = v->value;
driver = strsep(&stringp, ",");
-
+
+ if ( (tmpstr = strstr(stringp, "\"")))
+ stringp = tmpstr;
+
/* check if the database text starts with a double quote */
if (*stringp == '"') {
stringp++;
More information about the asterisk-commits
mailing list