Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kiste
xwax
Commits
de009a79
Commit
de009a79
authored
Jun 14, 2017
by
Mark Hills
Browse files
Simplify
It's valid to call free() on a NULL pointer, so use this.
parent
f39de371
Changes
1
Hide whitespace changes
Inline
Side-by-side
index.c
View file @
de009a79
...
...
@@ -53,8 +53,7 @@ void index_init(struct index *ls)
void
index_clear
(
struct
index
*
ls
)
{
if
(
ls
->
record
!=
NULL
)
free
(
ls
->
record
);
free
(
ls
->
record
);
/* may be NULL */
}
/*
...
...
Write
Preview
Supports
Markdown
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