mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 11:09:06 +08:00
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:
parent
f46dfdc29d
commit
3ac54b935c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user