Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit473ef14

Browse files
knizhnikkelvich
authored andcommitted
Fix old way of specifying connection strings
1 parent6350d28 commit473ef14

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)

[8]ページ先頭

©2009-2025 Movatter.jp