mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
Fix compile with mingw32 for win32, removed int decl in for loop.
This commit is contained in:
parent
abb3829197
commit
803b3fb542
1 changed files with 2 additions and 1 deletions
|
@ -168,6 +168,7 @@ int main(int argc, char **argv) {
|
||||||
CSYNC *csync;
|
CSYNC *csync;
|
||||||
char errbuf[256] = {0};
|
char errbuf[256] = {0};
|
||||||
int curser = 0;
|
int curser = 0;
|
||||||
|
int i;
|
||||||
|
|
||||||
struct argument_s arguments;
|
struct argument_s arguments;
|
||||||
|
|
||||||
|
@ -196,7 +197,7 @@ int main(int argc, char **argv) {
|
||||||
* Protect password from ps listing
|
* Protect password from ps listing
|
||||||
* Find and replace :password@ by :********@
|
* Find and replace :password@ by :********@
|
||||||
*/
|
*/
|
||||||
for (int i = 0; i < argc; i++) {
|
for (i = 0; i < argc; i++) {
|
||||||
if (csync_fnmatch("*://*:*@*", argv[i], 0) == 0) {
|
if (csync_fnmatch("*://*:*@*", argv[i], 0) == 0) {
|
||||||
curser = strlen(argv[i]);
|
curser = strlen(argv[i]);
|
||||||
while(curser > 0 && argv[i][curser] != '@') {
|
while(curser > 0 && argv[i][curser] != '@') {
|
||||||
|
|
Loading…
Reference in a new issue