summaryrefslogtreecommitdiffstats
path: root/src/xspawn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xspawn.c')
-rw-r--r--src/xspawn.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/xspawn.c b/src/xspawn.c
index 93c270a..67e0572 100644
--- a/src/xspawn.c
+++ b/src/xspawn.c
@@ -260,11 +260,13 @@ char *bfs_spawn_resolve(const char *exe) {
const char *path = getenv("PATH");
char *confpath = NULL;
+#ifdef _CS_PATH
if (!path) {
path = confpath = xconfstr(_CS_PATH);
- if (!path) {
- return NULL;
- }
+ }
+#endif
+ if (!path) {
+ return NULL;
}
size_t cap = 0;