diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-06-24 10:23:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-06-24 10:23:52 -0400 |
commit | 2ffd4a9762a9d23d5a2d13fbe69d53a65253556f (patch) | |
tree | 78c5613f9efb065e02841e7f46a5cc2d2df94aa9 | |
parent | 4f86d1d032f572147c835f7020869714ac6e1d31 (diff) | |
download | stasis-2ffd4a9762a9d23d5a2d13fbe69d53a65253556f.tar.gz |
Initialize workdir_template string to zero
-rw-r--r-- | src/stasis_indexer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stasis_indexer.c b/src/stasis_indexer.c index a2e3777..81aecf5 100644 --- a/src/stasis_indexer.c +++ b/src/stasis_indexer.c @@ -580,7 +580,7 @@ int main(int argc, char *argv[]) { } char *workdir; - char workdir_template[PATH_MAX]; + char workdir_template[PATH_MAX] = {0}; char *system_tmp = getenv("TMPDIR"); if (system_tmp) { strcat(workdir_template, system_tmp); |