mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
Fix CID 1157757 (Logically dead code)
deviceNameStart cannot be NULL here. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
36c985b715
commit
4cc103cd42
@ -447,10 +447,6 @@ static ds_status readProfileFromFile(ds_profile *profile,
|
||||
driverVersionLength) == 0) {
|
||||
deviceScoreStart =
|
||||
findString(dataStart, contentEnd, DS_TAG_SCORE);
|
||||
if (deviceNameStart == nullptr) {
|
||||
status = DS_PROFILE_FILE_ERROR;
|
||||
goto cleanup;
|
||||
}
|
||||
deviceScoreStart += strlen(DS_TAG_SCORE);
|
||||
deviceScoreEnd =
|
||||
findString(deviceScoreStart, contentEnd, DS_TAG_SCORE_END);
|
||||
|
Loading…
Reference in New Issue
Block a user