opencl: Fix compiler warning [-Wconversion-null]

gcc report:

opencl/openclwrapper.cpp:84:23: warning:
 converting to non-pointer type 'char' from NULL [-Wconversion-null]

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2016-10-26 18:46:01 +02:00
parent f46dfdc29d
commit 3ac54b935c

View File

@ -81,7 +81,7 @@ void legalizeFileName( char *fileName) {
for (int i = 0; i < strlen(invalidChars); i++) {
char invalidStr[4];
invalidStr[0] = invalidChars[i];
invalidStr[1] = NULL;
invalidStr[1] = '\0';
//printf("eliminating %s\n", invalidStr);
//char *pos = strstr(fileName, invalidStr);
// initial ./ is valid for present directory