diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-09-26 09:58:12 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-09-26 09:58:12 -0400 |
commit | 34aaf0e2bbf47e712a0b55fa3f94387b466f314b (patch) | |
tree | 1c1de7f1c2fce5fc25bf36e1792970c5c3270cde | |
parent | 42807d1d62b85b00c7898d0434bb278a780237f9 (diff) | |
download | stasis-34aaf0e2bbf47e712a0b55fa3f94387b466f314b.tar.gz |
Zero log_file to avoid garbage output
-rw-r--r-- | src/multiprocessing.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/multiprocessing.c b/src/multiprocessing.c index 5c66672..cd48c6f 100644 --- a/src/multiprocessing.c +++ b/src/multiprocessing.c @@ -105,6 +105,7 @@ struct MultiProcessingTask *mp_pool_task(struct MultiProcessingPool *pool, const strncpy(slot->ident, ident, sizeof(slot->ident) - 1); // Set log file path + memset(slot->log_file, 0, sizeof(*slot->log_file)); strcat(slot->log_file, pool->log_root); strcat(slot->log_file, "/"); |