projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94cd315
)
element: Don't increment NULL pointers
author
Sebastian Dröge
<sebastian@centricular.com>
Wed, 23 Nov 2016 16:57:17 +0000
(18:57 +0200)
committer
Sebastian Dröge
<sebastian@centricular.com>
Wed, 23 Nov 2016 16:57:17 +0000
(18:57 +0200)
Trivial workaround for coverity false warning.
CID 1394488, 1394487.
gst/gstelement.c
patch
|
blob
|
history
diff --git
a/gst/gstelement.c
b/gst/gstelement.c
index
7eea64d
..
4ff9c67
100644
(file)
--- a/
gst/gstelement.c
+++ b/
gst/gstelement.c
@@
-1026,8
+1026,11
@@
gst_element_is_valid_request_template_name (const gchar * templ_name,
g_free (target);
}
- templ_name++;
- name++;
+ /* otherwise we increment these from NULL to 1 */
+ if (next_specifier) {
+ templ_name++;
+ name++;
+ }
} while (next_specifier);
return TRUE;