Browse Source

Make a binary load failure build from source.

Ycros 14 years ago
parent
commit
5d301c8ba0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ocl.c

+ 1 - 1
ocl.c

@@ -397,7 +397,7 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
 		if (fread(binaries[gpu], 1, binary_sizes[gpu], binaryfile) != binary_sizes[gpu]) {
 			applog(LOG_ERR, "Unable to fread binaries[gpu]");
 			fclose(binaryfile);
-			return NULL;
+			goto build;
 		}
 		fclose(binaryfile);