Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
c8933031
Commit
c8933031
authored
Aug 03, 2005
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved a variable in glob_expand_one().
parent
c9dc1300
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
util.c
util.c
+2
-3
No files found.
util.c
View file @
c8933031
...
@@ -528,7 +528,6 @@ static void glob_expand_one(char *s, char ***argv_ptr, int *argc_ptr,
...
@@ -528,7 +528,6 @@ static void glob_expand_one(char *s, char ***argv_ptr, int *argc_ptr,
filter_server_path
(
s
);
filter_server_path
(
s
);
#else
#else
glob_t
globbuf
;
glob_t
globbuf
;
int
i
;
if
(
maxargs
<=
argc
)
if
(
maxargs
<=
argc
)
return
;
return
;
...
@@ -553,9 +552,9 @@ static void glob_expand_one(char *s, char ***argv_ptr, int *argc_ptr,
...
@@ -553,9 +552,9 @@ static void glob_expand_one(char *s, char ***argv_ptr, int *argc_ptr,
if
(
globbuf
.
gl_pathc
==
0
)
if
(
globbuf
.
gl_pathc
==
0
)
argv
[
argc
++
]
=
s
;
argv
[
argc
++
]
=
s
;
else
{
else
{
int
j
=
globbuf
.
gl_pathc
;
int
i
;
free
(
s
);
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
])))
if
(
!
(
argv
[
argc
++
]
=
strdup
(
globbuf
.
gl_pathv
[
i
])))
out_of_memory
(
"glob_expand_one"
);
out_of_memory
(
"glob_expand_one"
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment