From 0e2f15442812c254e460e81275b20881234d92c1 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 17 Feb 2012 14:28:48 -0600 Subject: Fixes for variable shadowing (15/28) --- src/item.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/item.cc') diff --git a/src/item.cc b/src/item.cc index 7e7cda0d..8a2b5585 100644 --- a/src/item.cc +++ b/src/item.cc @@ -148,9 +148,9 @@ void item_t::parse_tags(const char * p, std::strncpy(buf, b + 1, e - b - 1); buf[e - b - 1] = '\0'; - if (char * p = std::strchr(buf, '=')) { - *p++ = '\0'; - _date_eff = parse_date(p); + if (char * pp = std::strchr(buf, '=')) { + *pp++ = '\0'; + _date_eff = parse_date(pp); } if (buf[0]) _date = parse_date(buf); -- cgit v1.2.3