Don't segfault on unbalanced quotes.

This commit is contained in:
charsyam 2013-02-05 21:47:14 -08:00 committed by antirez
parent 304ef5e283
commit 1303f02be6

View File

@ -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 */