Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
def79abd
Commit
def79abd
authored
Mar 20, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed config parser to recognize correctly strings like following:
test="\"#no comment here"#real comment
parent
262d5311
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
mysys/default.c
mysys/default.c
+4
-2
No files found.
mysys/default.c
View file @
def79abd
...
...
@@ -449,11 +449,12 @@ static int search_default_file(DYNAMIC_ARRAY *args, MEM_ROOT *alloc,
static
char
*
remove_end_comment
(
char
*
ptr
)
{
char
quote
=
0
;
char
quote
=
0
;
/* we are inside quote marks */
char
escape
=
0
;
/* symbol is protected by escape chagacter */
for
(;
*
ptr
;
ptr
++
)
{
if
(
*
ptr
==
'\''
||
*
ptr
==
'\"'
)
if
(
(
*
ptr
==
'\''
||
*
ptr
==
'\"'
)
&&
!
escape
)
{
if
(
!
quote
)
quote
=
*
ptr
;
...
...
@@ -465,6 +466,7 @@ static char *remove_end_comment(char *ptr)
*
ptr
=
0
;
return
ptr
;
}
escape
=
(
quote
&&
*
ptr
==
'\\'
&&
!
escape
);
}
return
ptr
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment