projects
/
platform
/
upstream
/
libnice.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a378b8
)
candidate: fix unused variable
author
Fabrice Bellet
<fabrice@bellet.info>
Mon, 7 Sep 2020 19:51:04 +0000
(21:51 +0200)
committer
Fabrice Bellet
<fabrice@bellet.info>
Mon, 14 Dec 2020 16:15:04 +0000
(17:15 +0100)
agent/candidate.c
patch
|
blob
|
history
diff --git
a/agent/candidate.c
b/agent/candidate.c
index
b1dbb75
..
9b12a80
100644
(file)
--- a/
agent/candidate.c
+++ b/
agent/candidate.c
@@
-404,10
+404,9
@@
nice_candidate_pair_priority_to_string (guint64 prio, gchar *string)
NICEAPI_EXPORT NiceCandidate *
nice_candidate_copy (const NiceCandidate *candidate)
{
- const NiceCandidateImpl *c = (NiceCandidateImpl *)candidate;
NiceCandidateImpl *copy;
- g_return_val_if_fail (c != NULL, NULL);
+ g_return_val_if_fail (c
andidate
!= NULL, NULL);
copy = (NiceCandidateImpl *) nice_candidate_new (candidate->type);
memcpy (copy, candidate, sizeof(NiceCandidateImpl));