kopia lustrzana https://gitlab.com/tomaszg/geostat
Fix UB in count_caches() causing crash in some cases
rodzic
81bf5a09cd
commit
76137853ef
|
@ -315,7 +315,7 @@ int count_caches(const Caches& cc, std::string& codes, std::function<bool(const
|
|||
codes += ' ';
|
||||
}
|
||||
}
|
||||
codes.pop_back();
|
||||
if (!codes.empty()) codes.pop_back();
|
||||
return count;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue