Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Elsa Gonsiorowski
codes
Commits
f4d5e908
Commit
f4d5e908
authored
May 29, 2014
by
Jonathan Jenkins
Browse files
oops, uninitialized pointer
parent
6153f47e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/models/networks/model-net/model-net-sched-impl.c
View file @
f4d5e908
...
...
@@ -262,10 +262,12 @@ void rr_add (
q
->
remote_event
=
malloc
(
remote_event_size
);
memcpy
(
q
->
remote_event
,
remote_event
,
remote_event_size
);
}
else
{
q
->
remote_event
=
NULL
;
}
if
(
local_event_size
>
0
){
q
->
local_event
=
malloc
(
local_event_size
);
memcpy
(
q
->
local_event
,
local_event
,
local_event_size
);
}
else
{
q
->
local_event
=
NULL
;
}
mn_sched
*
s
=
sched
;
qlist_add_tail
(
&
q
->
ql
,
&
s
->
reqs
);
}
...
...
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