[Libreoffice-commits] .: soltools/mkdepend
Caolán McNamara
caolan at kemper.freedesktop.org
Mon Oct 18 06:54:28 PDT 2010
soltools/mkdepend/include.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit a88a084205aa2ee483d2f4ff851f9f2f261be055
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Oct 18 14:43:28 2010 +0100
CLang++ Dead increment
diff --git a/soltools/mkdepend/include.c b/soltools/mkdepend/include.c
index e6d4bdd..0ab1cef 100644
--- a/soltools/mkdepend/include.c
+++ b/soltools/mkdepend/include.c
@@ -212,7 +212,7 @@ void remove_dotdot(path)
int isdot(p)
register char *p;
{
- if(p && *p++ == '.' && *p++ == '\0')
+ if(p && p[0] == '.' && p[1] == '\0')
return(TRUE);
return(FALSE);
}
@@ -220,7 +220,7 @@ int isdot(p)
int isdotdot(p)
register char *p;
{
- if(p && *p++ == '.' && *p++ == '.' && *p++ == '\0')
+ if(p && p[0] == '.' && p[1] == '.' && p[2] == '\0')
return(TRUE);
return(FALSE);
}
More information about the Libreoffice-commits
mailing list