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
858da5af
Commit
858da5af
authored
7 years ago
by
Michael Tremer
Browse files
Options
Download
Email Patches
Plain Diff
as: Return NULL if name is not set
Signed-off-by:
Michael Tremer
<
michael.tremer@ipfire.org
>
parent
38e07ee0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/as.c
src/as.c
+4
-1
No files found.
src/as.c
View file @
858da5af
...
...
@@ -81,7 +81,10 @@ LOC_EXPORT uint32_t loc_as_get_number(struct loc_as* as) {
}
LOC_EXPORT
const
char
*
loc_as_get_name
(
struct
loc_as
*
as
)
{
return
loc_stringpool_get
(
as
->
pool
,
as
->
name
);
if
(
as
->
name
)
return
loc_stringpool_get
(
as
->
pool
,
as
->
name
);
return
NULL
;
}
LOC_EXPORT
int
loc_as_set_name
(
struct
loc_as
*
as
,
const
char
*
name
)
{
...
...
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