summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-04-24 10:49:33 +0200
committerSimon Rettberg2024-05-13 18:26:42 +0200
commit19e5279f2389fca5f4417868453c4c435c8ad6b8 (patch)
tree857d0a1eceac47e43166c5bdabdb934959bf3537
parentgithub: Use bash redirects for stdout+err (diff)
downloaddnbd3-19e5279f2389fca5f4417868453c4c435c8ad6b8.tar.gz
dnbd3-19e5279f2389fca5f4417868453c4c435c8ad6b8.tar.xz
dnbd3-19e5279f2389fca5f4417868453c4c435c8ad6b8.zip
[FUSE] Fix uninitialized speed buffer
-rw-r--r--src/fuse/cowfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fuse/cowfile.c b/src/fuse/cowfile.c
index b22d24a..90ea568 100644
--- a/src/fuse/cowfile.c
+++ b/src/fuse/cowfile.c
@@ -759,7 +759,7 @@ void *cowfile_statUpdater( UNUSED void *something )
{
uint64_t lastUpdateTime = time( NULL );
time_t now;
- char speedBuffer[20];
+ char speedBuffer[20] = "0";
while ( !uploadLoopDone ) {
int modified = 0;