templatematch: Compare the correct loop variables
authorSebastian Dröge <sebastian@centricular.com>
Mon, 15 Sep 2014 22:15:31 +0000 (01:15 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 15 Sep 2014 22:15:31 +0000 (01:15 +0300)
tests/check/elements/templatematch.c

index cce165f..5b56718 100644 (file)
@@ -54,7 +54,7 @@ create_input_buffer (void)
   data = g_malloc0 (size);
 
   /* blue and green */
-  for (j = 0; i < 8; j++) {
+  for (j = 0; j < 8; j++) {
     for (i = 0; i < 8; i++) {
       base = j * 16;
       data[base + i] = 255;
@@ -67,7 +67,7 @@ create_input_buffer (void)
     }
   }
   /* red */
-  for (j = 0; i < 8; j++) {
+  for (j = 0; j < 8; j++) {
     for (i = 0; i < 8; i++) {
       base = 8 * 8 + j * 16;
       data[base + i] = 0;