Skip to content

Commit

Permalink
Merge pull request #5051 from cgwalters/fix-more-coverity
Browse files Browse the repository at this point in the history
core: Fix Coverity WRAPPER_ESCAPE
  • Loading branch information
jmarrero authored Aug 15, 2024
2 parents af87ec5 + 3753ebf commit 76cb1fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libpriv/rpmostree-core.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1782,7 +1782,8 @@ rpmostree_context_prepare (RpmOstreeContext *self, gboolean enable_filelists,
auto pkg = "";
for (auto &pkg_str : packages)
{
pkg = std::string (pkg_str).c_str ();
auto pkg_buf = std::string (pkg_str);
pkg = pkg_buf.c_str ();
char *query = strchr ((char *)pkg, '/');
if (query)
{
Expand Down

0 comments on commit 76cb1fa

Please sign in to comment.