diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-03-27 12:49:51 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-03-27 12:49:51 -0400 |
commit | 03ed337f220d1ca133433473fe63813b1d19c9e2 (patch) | |
tree | 1ced5eb44f95e2e3ed64c60f62cd1c015594817b /lib/internal_cmd.c | |
parent | 6adde6c1fa88aa8ae45f5cf3d8be449f7650b9fb (diff) | |
download | spmc-03ed337f220d1ca133433473fe63813b1d19c9e2.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 b2305a0..b1e8faa 100644 --- a/lib/internal_cmd.c +++ b/lib/internal_cmd.c @@ -172,7 +172,7 @@ static char *getenv_pair(const char *_str) { return NULL; } } - result = join((char *[]){str, getenv(str)}, "="); + result = join((char *[]){str, getenv(str), NULL}, "="); free(str); return result; } |