From cf152f04f1b2b3c5a8528c3fe1b734f061b2e46c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Mon, 25 Aug 2008 02:30:04 +0000 Subject: [PATCH] Don't use the side effect of ++var, just use the result git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23659 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/editline/complete.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/editline/complete.c b/lib/editline/complete.c index a3bdb9a30..0602d42c7 100644 --- a/lib/editline/complete.c +++ b/lib/editline/complete.c @@ -113,7 +113,7 @@ static int SplitPath(char *path, char **dirpart, char **filepart) if ((dpart = strdup(path)) == NULL) return -1; dpart[fpart - path] = '\0'; - if ((fpart = strdup(++fpart)) == NULL) { + if ((fpart = strdup(fpart + 1)) == NULL) { free(dpart); return -1; }