Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
e299a7e4
Commit
e299a7e4
authored
May 04, 2016
by
Cédric Roux
Browse files
bugfix - it may be that the container has only one child when we delete it
parent
8f50b77e
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/utils/T/tracer/gui/container.c
View file @
e299a7e4
...
...
@@ -49,7 +49,7 @@ static void del_child(gui *g, widget *_this, widget *child)
(
this
->
nchildren
-
position
-
1
)
*
sizeof
(
int
));
this
->
growable
=
realloc
(
this
->
growable
,
(
this
->
nchildren
-
1
)
*
sizeof
(
int
));
if
(
this
->
growable
==
NULL
)
abort
();
if
(
this
->
nchildren
!=
1
&&
this
->
growable
==
NULL
)
abort
();
this
->
nchildren
--
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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