Skip to content

Commit 2f835d4

Browse files
committed
msg-filter: rename misleading var core -> path
1 parent cdd76a6 commit 2f835d4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: src/lib/msg-filter.cc

+5-5
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ std::string MsgFilter::filterPath(const std::string &origPath) const
275275
return path;
276276

277277
std::string nvr (sm[/* NVR */ 1]);
278-
std::string core(sm[/* core */ 2]);
278+
path = sm[/* core */ 2];
279279

280280
// try to kill the multiple version strings in paths (kernel, OpenLDAP, ...)
281281
nvr.resize(nvr.size() - 1);
@@ -289,15 +289,15 @@ std::string MsgFilter::filterPath(const std::string &origPath) const
289289
#endif
290290

291291
const RE reKill(krnPattern);
292-
core = boost::regex_replace(core, reKill, "");
292+
path = boost::regex_replace(path, reKill, "");
293293

294294
// quirk for Coverity inconsistency in handling bison-generated file names
295295
std::string suff(sm[/* Bison suffix */ 3]);
296296
if (!suff.empty())
297-
core += ".c";
297+
path += ".c";
298298

299299
#if DEBUG_SUBST
300-
std::cerr << "filterPath: " << path << " -> " << core << "\n";
300+
std::cerr << "filterPath: " << origPath << " -> " << path << "\n";
301301
#endif
302-
return core;
302+
return path;
303303
}

0 commit comments

Comments
 (0)