调整对比name字段导致崩溃问题

This commit is contained in:
13038267101 2022-11-15 11:00:00 +08:00
parent 9f0d030fec
commit 9ed88d0a46
1 changed files with 1 additions and 1 deletions

View File

@ -1049,7 +1049,7 @@ SANE_Option_Descriptor* hg_sane_middleware::find_stored_descriptor(const char* n
{ {
for (const auto& v : opts_) for (const auto& v : opts_)
{ {
if (v.dev_name == name && v.opt_name == (const char*)option) if (v.dev_name == name && v.opt_name.c_str() == (const char*)option)
return v.desc; return v.desc;
} }
} }