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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
0e75717d
Commit
0e75717d
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
331ff0d8
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 @
0e75717d
...
...
@@ -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