glslstage: add brackets around pointer dereference referencing an array
authorMatthew Waters <matthew@centricular.com>
Thu, 15 Oct 2015 15:57:19 +0000 (02:57 +1100)
committerMatthew Waters <matthew@centricular.com>
Thu, 15 Oct 2015 15:57:19 +0000 (02:57 +1100)
While technically, i is always 0 and *vertex_sources[i++] is equivalant
to (*vertex_sources)[i++].  Be future-proof in the case of code
moves/changes/etc.

CID 1327406

gst-libs/gst/gl/gstglslstage.c

index ed5f4fd..8b2b928 100644 (file)
@@ -419,7 +419,7 @@ _maybe_prepend_version (GstGLSLStage * stage, gchar ** shader_str,
 
   i = 0;
   if (add_header)
-    *vertex_sources[i++] = es2_version_header;
+    (*vertex_sources)[i++] = es2_version_header;
 
   for (j = 0; j < stage->priv->n_strings; i++, j++)
     (*vertex_sources)[i] = shader_str[j];