Skip to content

Commit dda16ae

Browse files
committed
fix last fix of a fix
1 parent 9f036bd commit dda16ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/opencl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ void dt_opencl_init(dt_opencl_t *cl, const gboolean exclude_opencl)
184184
for(int n = 0; n < num_platforms; n++) num_devices += all_num_devices[n];
185185

186186
// create the device list
187-
cl_device_id *devices;
187+
cl_device_id *devices = 0;
188188
if(num_devices)
189189
{
190190
cl->dev = (dt_opencl_device_t *)malloc(sizeof(dt_opencl_device_t) * num_devices);

0 commit comments

Comments
 (0)