Author: mlschroe Date: Mon Mar 3 21:14:12 2008 New Revision: 8992 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8992&view=rev Log: - do not use i twice (fixes #366548) Modified: trunk/sat-solver/src/repo.c Modified: trunk/sat-solver/src/repo.c URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/src/repo.c?rev=8992&am... ============================================================================== --- trunk/sat-solver/src/repo.c (original) +++ trunk/sat-solver/src/repo.c Mon Mar 3 21:14:12 2008 @@ -321,7 +321,7 @@ Pool *pool = repo->pool; Id id, idp, idl; char buf[1024], *p, *dep; - int i; + int i, l; if (provides) { @@ -393,9 +393,9 @@ *p++ = 0; idp = str2id(pool, buf, 1); /* strip trailing slashes */ - i = strlen(p); - while (i > 1 && p[i - 1] == '/') - p[--i] = 0; + l = strlen(p); + while (l > 1 && p[l - 1] == '/') + p[--l] = 0; id = str2id(pool, p, 1); id = rel2id(pool, idp, id, REL_WITH, 1); id = rel2id(pool, NAMESPACE_SPLITPROVIDES, id, REL_NAMESPACE, 1); -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org