summaryrefslogtreecommitdiff
path: root/src/shared/path-util.c
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-04-15 22:16:40 -0400
committerDave Reisner <dreisner@archlinux.org>2014-04-21 09:52:08 -0400
commitdbb9401dba0bd5157d021e695a47bf52b2d74a2d (patch)
tree1e1702058f666fdff25227e3366560918e6291ea /src/shared/path-util.c
parent6d6c604ac8ac777dde0eeb58745ee6e76e2ea43d (diff)
condense assignment and path_kill_slashes calls
Diffstat (limited to 'src/shared/path-util.c')
-rw-r--r--src/shared/path-util.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shared/path-util.c b/src/shared/path-util.c
index e35d7f8d67..373dd7a35c 100644
--- a/src/shared/path-util.c
+++ b/src/shared/path-util.c
@@ -464,8 +464,7 @@ int find_binary(const char *name, char **filename) {
continue;
if (filename) {
- path_kill_slashes(p);
- *filename = p;
+ *filename = path_kill_slashes(p);
p = NULL;
}