1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-29 16:04:33 +00:00

Initialise variables not set on OSX in ocl.c.

This commit is contained in:
Con Kolivas 2013-04-25 00:09:09 +10:00
parent 9aae2256d3
commit 0a8f584909

4
ocl.c
View File

@ -502,8 +502,8 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
#endif #endif
FILE *binaryfile; FILE *binaryfile;
size_t *binary_sizes; size_t *binary_sizes = NULL;
char **binaries; char **binaries = NULL;
int pl; int pl;
char *source = file_contents(filename, &pl); char *source = file_contents(filename, &pl);
size_t sourceSize[] = {(size_t)pl}; size_t sourceSize[] = {(size_t)pl};