Don't segfault on unbalanced quotes.

This commit is contained in:
charsyam
2013-03-06 11:54:02 +01:00
committed by antirez
parent 304ef5e283
commit 1303f02be6
+4
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 */