Skip to content

Commit 4383ff4

Browse files
committed
Fix old way of specifying connection strings
1 parent f0c5ddc commit 4383ff4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/mmts/multimaster.c

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

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy