mirror of https://git.kore.io/kore.git
strdup the application name.
This commit is contained in:
parent
cdb45118e2
commit
51e9c64fc0
|
@ -611,7 +611,7 @@ cli_build(int argc, char **argv)
|
||||||
if (getcwd(pwd, sizeof(pwd)) == NULL)
|
if (getcwd(pwd, sizeof(pwd)) == NULL)
|
||||||
fatal("could not get cwd: %s", errno_s);
|
fatal("could not get cwd: %s", errno_s);
|
||||||
|
|
||||||
appl = basename(pwd);
|
appl = cli_strdup(basename(pwd));
|
||||||
|
|
||||||
if ((p = getenv("CC")) != NULL) {
|
if ((p = getenv("CC")) != NULL) {
|
||||||
compiler_c = p;
|
compiler_c = p;
|
||||||
|
|
Loading…
Reference in New Issue