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
2f1fb732
Commit
2f1fb732
authored
Sep 05, 2009
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve error handling and get rid of a lingering fprintf().
parent
59924aa8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
token.c
token.c
+5
-6
No files found.
token.c
View file @
2f1fb732
...
...
@@ -45,13 +45,13 @@ static void add_suffix(struct suffix_tree **prior, char ltr, const char *str)
if
(
ltr
==
'['
)
{
const
char
*
after
=
strchr
(
str
,
']'
);
/* Just skip bogus character classes. */
if
(
!
after
++
)
return
;
/* Treat "[foo" and "[]" as having a literal '['. */
if
(
after
&&
after
++
!=
str
+
1
)
{
while
((
ltr
=
*
str
++
)
!=
']'
)
add_suffix
(
prior
,
ltr
,
after
);
return
;
}
}
for
(
node
=
*
prior
;
node
;
prior
=
&
node
->
sibling
,
node
=
node
->
sibling
)
{
if
(
node
->
letter
==
ltr
)
{
...
...
@@ -100,7 +100,6 @@ static void add_nocompress_suffixes(const char *str)
}
while
(
*++
f
!=
'/'
&&
*
f
);
*
t
++
=
'\0'
;
fprintf
(
stderr
,
"adding `%s'
\n
"
,
buf
);
add_suffix
(
&
suftree
,
*
buf
,
buf
+
1
);
}
...
...
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