summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorunknown <monty@narttu.mysql.fi>2003-09-23 13:36:25 +0300
committerunknown <monty@narttu.mysql.fi>2003-09-23 13:36:25 +0300
commit58ec8f35f7a92005b1a06f8d071b56649ca43857 (patch)
treeb593284eb804b90e72044fd9fc3f716bab425789 /mysys
parenta86e11ef153433cf52886692c493e90784e10ee2 (diff)
parentf46ca5fbe905caa7efb3f3cafdbdcc7c0f83a2b0 (diff)
downloadmariadb-git-58ec8f35f7a92005b1a06f8d071b56649ca43857.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-4.0
into narttu.mysql.fi:/my/mysql-4.0 extra/comp_err.c: Auto merged
Diffstat (limited to 'mysys')
-rw-r--r--mysys/default.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysys/default.c b/mysys/default.c
index d938bc4435f..0318efeb448 100644
--- a/mysys/default.c
+++ b/mysys/default.c
@@ -387,6 +387,8 @@ static int search_default_file(DYNAMIC_ARRAY *args, MEM_ROOT *alloc,
*ptr++= '=';
for ( ; value != value_end; value++)
{
+ if (*value == '\"' || *value == '\'')
+ continue;
if (*value == '\\' && value != value_end-1)
{
switch(*++value) {
@@ -405,6 +407,12 @@ static int search_default_file(DYNAMIC_ARRAY *args, MEM_ROOT *alloc,
case 's':
*ptr++= ' '; /* space */
break;
+ case '\"':
+ *ptr++= '\"';
+ break;
+ case '\'':
+ *ptr++= '\'';
+ break;
case '\\':
*ptr++= '\\';
break;