X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/25007999df5ef5ecb138f34193729e4019ad778c..0417c34e2d641cbac292ba5cf8a619249c87d4e3:/util.c diff --git a/util.c b/util.c index e99ede8e..9ebd6ba7 100644 --- a/util.c +++ b/util.c @@ -528,7 +528,6 @@ static void glob_expand_one(char *s, char ***argv_ptr, int *argc_ptr, filter_server_path(s); #else glob_t globbuf; - int i; if (maxargs <= argc) return; @@ -553,9 +552,9 @@ static void glob_expand_one(char *s, char ***argv_ptr, int *argc_ptr, if (globbuf.gl_pathc == 0) argv[argc++] = s; else { - int j = globbuf.gl_pathc; + int i; free(s); - for (i = 0; i < j; i++) { + for (i = 0; i < (int)globbuf.gl_pathc; i++) { if (!(argv[argc++] = strdup(globbuf.gl_pathv[i]))) out_of_memory("glob_expand_one"); }