Don't segfault on unbalanced quotes.
This commit is contained in:
parent
304ef5e283
commit
1303f02be6
@ -73,6 +73,10 @@ void loadServerConfigFromString(char *config) {
|
||||
|
||||
/* Split into arguments */
|
||||
argv = sdssplitargs(lines[i],&argc);
|
||||
if (argv == NULL) {
|
||||
err = "can't parse this line";
|
||||
goto loaderr;
|
||||
}
|
||||
sdstolower(argv[0]);
|
||||
|
||||
/* Execute config directives */
|
||||
|
Loading…
x
Reference in New Issue
Block a user