aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-make/exec.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2018-01-07 20:54:23 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2018-01-07 20:54:23 +0100
commit758b0f711c496a1121061724573bb0eb816cd57b (patch)
tree32f49361c53f7e2b9e743fec51972b9c4266e7ad /src/blogc-make/exec.c
parentbcb0f034b6ed1e2b0f362747287479e17c9da2de (diff)
downloadblogc-758b0f711c496a1121061724573bb0eb816cd57b.tar.gz
blogc-758b0f711c496a1121061724573bb0eb816cd57b.tar.bz2
blogc-758b0f711c496a1121061724573bb0eb816cd57b.zip
make: disable bm_find_binary tests when running embedded
Diffstat (limited to 'src/blogc-make/exec.c')
-rw-r--r--src/blogc-make/exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blogc-make/exec.c b/src/blogc-make/exec.c
index dba7e5c..551c7d7 100644
--- a/src/blogc-make/exec.c
+++ b/src/blogc-make/exec.c
@@ -33,8 +33,8 @@ bm_exec_find_binary(const char *argv0, const char *bin, const char *env)
// for embedded blogc-make, if we are looking for blogc, we just return
// argv0, because the static binary may not be named `blogc`, and we
// prefer to use our own `blogc` instead of some other version around.
- if (0 == strcmp(bin, "blogc")) {
- return bc_strdup(argv0);
+ if (argv0 != NULL && bin != NULL && (0 == strcmp(bin, "blogc"))) {
+ return bc_shell_quote(argv0);
}
#endif