Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
nexedi
libloc
Commits
e2d3860b
Commit
e2d3860b
authored
4 years ago
by
Michael Tremer
Browse files
Options
Download
Email Patches
Plain Diff
Fix searching with an empty string
Signed-off-by:
Michael Tremer
<
michael.tremer@ipfire.org
>
parent
83d61c46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/as.c
src/as.c
+4
-0
No files found.
src/as.c
View file @
e2d3860b
...
...
@@ -135,6 +135,10 @@ int loc_as_to_database_v0(struct loc_as* as, struct loc_stringpool* pool,
}
int
loc_as_match_string
(
struct
loc_as
*
as
,
const
char
*
string
)
{
// Match all AS when no search string is set
if
(
!
string
)
return
1
;
// Search if string is in name
if
(
strcasestr
(
as
->
name
,
string
)
!=
NULL
)
return
1
;
...
...
This diff is collapsed.
Click to expand it.
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