mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-06-07 18:02:40 +08:00
Solve empty return for 'api.GetDatapath()' / (The pointer is dangling because it points at a temporary instance that was destroyed.
)
This commit is contained in:
parent
c61f8f2111
commit
9251830af7
@ -858,7 +858,7 @@ const char *TessBaseAPI::GetInputName() {
|
||||
}
|
||||
|
||||
const char *TessBaseAPI::GetDatapath() {
|
||||
return tesseract_->datadir.c_str();
|
||||
return datapath_.c_str();
|
||||
}
|
||||
|
||||
int TessBaseAPI::GetSourceYResolution() {
|
||||
|
Loading…
Reference in New Issue
Block a user