Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
Properly initialize platform variable.
Browse files Browse the repository at this point in the history
Didn't compile with some compilers in some modes.
  • Loading branch information
tp7 committed Sep 21, 2014
1 parent f8fc147 commit f46db00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CLExpr/expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ ClExpr::ClExpr(PClip clip1, PClip clip2, PClip clip3,

cl_device_id device;
cl_int last_error;
cl_platform_id platform;
cl_platform_id platform = nullptr;
for (cl_uint i = 0; i < platforms_count; ++i)
{
last_error = clGetDeviceIDs(platforms[i], CL_DEVICE_TYPE_GPU, 1, &device, NULL);
Expand Down

0 comments on commit f46db00

Please sign in to comment.