Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
1303f02b
Commit
1303f02b
authored
Feb 05, 2013
by
charsyam
Committed by
antirez
Mar 06, 2013
Browse files
Don't segfault on unbalanced quotes.
parent
304ef5e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/config.c
View file @
1303f02b
...
@@ -73,6 +73,10 @@ void loadServerConfigFromString(char *config) {
...
@@ -73,6 +73,10 @@ void loadServerConfigFromString(char *config) {
/* Split into arguments */
/* Split into arguments */
argv
=
sdssplitargs
(
lines
[
i
],
&
argc
);
argv
=
sdssplitargs
(
lines
[
i
],
&
argc
);
if
(
argv
==
NULL
)
{
err
=
"can't parse this line"
;
goto
loaderr
;
}
sdstolower
(
argv
[
0
]);
sdstolower
(
argv
[
0
]);
/* Execute config directives */
/* Execute config directives */
...
...
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