aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-kbdc/paths.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-12-07 15:53:05 +0100
committerMattias Andrée <maandree@operamail.com>2014-12-07 15:53:05 +0100
commit66502051a113944aa3e659697b5d905d269adabb (patch)
tree07d3ef0cedc4cdef17fa358dd92bdbafc684f214 /src/mds-kbdc/paths.c
parentwhitespace (diff)
downloadmds-66502051a113944aa3e659697b5d905d269adabb.tar.gz
mds-66502051a113944aa3e659697b5d905d269adabb.tar.bz2
mds-66502051a113944aa3e659697b5d905d269adabb.tar.xz
fail_if supports sequences without being double bracketed
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/mds-kbdc/paths.c2
1 files changed, 1 insertions, 1 deletions
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));