Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
f9aac6fd
Commit
f9aac6fd
authored
May 20, 2010
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stream: Remove useless checks from stream_new
parent
ee16b91f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
16 deletions
+1
-16
agent/stream.c
agent/stream.c
+1
-16
No files found.
agent/stream.c
View file @
f9aac6fd
...
...
@@ -52,27 +52,12 @@ stream_new (guint n_components)
{
Stream
*
stream
;
guint
n
;
gboolean
errors
=
FALSE
;
GSList
*
modified_list
;
Component
*
component
;
stream
=
g_slice_new0
(
Stream
);
for
(
n
=
0
;
n
<
n_components
;
n
++
)
{
component
=
component_new
(
n
+
1
);
if
(
component
)
{
modified_list
=
g_slist_append
(
stream
->
components
,
component
);
if
(
modified_list
)
stream
->
components
=
modified_list
;
else
errors
=
TRUE
;
}
else
errors
=
TRUE
;
}
if
(
errors
)
{
stream_free
(
stream
);
return
NULL
;
stream
->
components
=
g_slist_append
(
stream
->
components
,
component
);
}
stream
->
n_components
=
n_components
;
...
...
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