Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 473ef14

Browse files
knizhnikkelvich
authored andcommitted
Fix old way of specifying connection strings
1 parent 6350d28 commit 473ef14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

multimaster.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2081,7 +2081,7 @@ static void MtmSplitConnStrs(void)
20812081
}
20822082
} else {
20832083
char* p = MtmConnStrs;
2084-
for (i = 0; *p != '\0'; i++) {
2084+
for (i = 0; *p != '\0'; p++, i++) {
20852085
if ((p = strchr(p, ',')) == NULL) {
20862086
i += 1;
20872087
break;
@@ -2118,7 +2118,7 @@ static void MtmSplitConnStrs(void)
21182118
char* connStr = copy;
21192119
char* connStrEnd = connStr + strlen(connStr);
21202120

2121-
for (i = 0; connStr != connStrEnd; i++) {
2121+
for (i = 0; connStr < connStrEnd; i++) {
21222122
char* p = strchr(connStr, ',');
21232123
if (p == NULL) {
21242124
p = connStrEnd;

0 commit comments

Comments
 (0)