From 66502051a113944aa3e659697b5d905d269adabb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 7 Dec 2014 15:53:05 +0100 Subject: fail_if supports sequences without being double bracketed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-kbdc/paths.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mds-kbdc/paths.c') diff --git a/src/mds-kbdc/paths.c b/src/mds-kbdc/paths.c index 031d49c..552aaae 100644 --- a/src/mds-kbdc/paths.c +++ b/src/mds-kbdc/paths.c @@ -75,7 +75,7 @@ char* abspath(const char* path) if (*path == '/') return strdup(path); - fail_if ((cwd = curpath(), cwd == NULL)); + fail_if (cwd = curpath(), cwd == NULL); size = (p = strlen(cwd)) + strlen(path) + 2; fail_if (xmalloc(buf, size + 1, char)); memcpy(buf, cwd, (p + 1) * sizeof(char)); -- cgit v1.2.3-70-g09d2