Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
57b393f7
Commit
57b393f7
authored
Apr 21, 2014
by
Hisham Muhammad
Browse files
shorten scope of variable.
parent
5b302808
Changes
1
Hide whitespace changes
Inline
Side-by-side
Vector.c
View file @
57b393f7
...
...
@@ -85,10 +85,8 @@ int Vector_count(Vector* this) {
void
Vector_prune
(
Vector
*
this
)
{
assert
(
Vector_isConsistent
(
this
));
int
i
;
if
(
this
->
owner
)
{
for
(
i
=
0
;
i
<
this
->
items
;
i
++
)
for
(
int
i
=
0
;
i
<
this
->
items
;
i
++
)
if
(
this
->
array
[
i
])
{
Object_delete
(
this
->
array
[
i
]);
//this->array[i] = NULL;
...
...
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