调整对比name字段导致崩溃问题
This commit is contained in:
parent
9f0d030fec
commit
9ed88d0a46
|
@ -1049,7 +1049,7 @@ SANE_Option_Descriptor* hg_sane_middleware::find_stored_descriptor(const char* n
|
|||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue