diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-03-26 12:00:58 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-03-26 12:18:44 -0400 |
commit | 4b8f46f02a12ba9f342985539703a94a16702311 (patch) | |
tree | 2d5d73c7cd50863cf08539cce5859c810fcf854e /lib/internal_cmd.c | |
parent | dad2485e1ff56073ae149d3caa5d702413318204 (diff) | |
download | spmc-4b8f46f02a12ba9f342985539703a94a16702311.tar.gz |
Bugfix: Terminate array
Diffstat (limited to 'lib/internal_cmd.c')
-rw-r--r-- | lib/internal_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal_cmd.c b/lib/internal_cmd.c index a192ccf..a75ebe2 100644 --- a/lib/internal_cmd.c +++ b/lib/internal_cmd.c @@ -186,7 +186,7 @@ int mkruntime_interface(int argc, char **argv) { runtime_set(rt, "PKG_CONFIG_PATH", "$SPM_PKGCONFIG:$PKG_CONFIG_PATH"); runtime_set(rt, "ACLOCAL_PATH", "${SPM_DATA}/aclocal"); - char *spm_ccpath = join((char *[]) {fs->bindir, "gcc"}, DIRSEPS); + char *spm_ccpath = join((char *[]) {fs->bindir, "gcc", NULL}, DIRSEPS); if (exists(spm_ccpath) == 0) { runtime_set(rt, "CC", "$SPM_BIN/gcc"); } |