aboutsummaryrefslogtreecommitdiff
path: root/bpkg/rep-remove.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-11-02 21:11:12 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-11-02 21:11:12 +0300
commit23cc1bbb6e1cbbf4af24ac8187630f26372a4b16 (patch)
treee93e28e0197467ba0eb107c01ce12dbc2b4bdbca /bpkg/rep-remove.cxx
parente2c792fc0453a0d332a9bd9a2c002f04da82f1e3 (diff)
Fix crash when compiled with GCC 4.9
Diffstat (limited to 'bpkg/rep-remove.cxx')
-rw-r--r--bpkg/rep-remove.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/bpkg/rep-remove.cxx b/bpkg/rep-remove.cxx
index 5a7f8da..657eee2 100644
--- a/bpkg/rep-remove.cxx
+++ b/bpkg/rep-remove.cxx
@@ -195,13 +195,13 @@ namespace bpkg
using query = query<repository>;
- for (shared_ptr<repository> r:
+ for (shared_ptr<repository> rp:
pointer_result (
db.query<repository> (
query::name != "" &&
query::location.type == to_string (r->location.type ()))))
{
- if (repository_state (r->location) == d)
+ if (repository_state (rp->location) == d)
{
rm = false;
break;