Browse Source

max: Fix iterating over designs

Samuel Thibault 3 years ago
parent
commit
df735d746b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/drivers/max/driver_fpga.c

+ 1 - 1
src/drivers/max/driver_fpga.c

@@ -179,7 +179,7 @@ static void init_device_context(unsigned devid)
 		unsigned n;
 
 		/* Which load we shall use */
-		for (n = 0; load->file; load++)
+		for (n = 0; load->file; n++, load++)
 		{
 			if (!strcmp(load->engine_id_pattern, "*"))
 				break;