Line 0
Link Here
|
0 |
- |
1 |
diff --git a/src/unionfs.c b/src/unionfs.c |
|
|
2 |
index 56d50dc..b327ccf 100644 |
3 |
--- a/src/unionfs.c |
4 |
+++ b/src/unionfs.c |
5 |
@@ -179,7 +179,7 @@ static int unionfs_getattr(const char *path, struct stat *stbuf) { |
6 |
DBG_IN(); |
7 |
|
8 |
if (uopt.stats_enabled && strcmp(path, STATS_FILENAME) == 0) { |
9 |
- memset(stbuf, 0, sizeof(stbuf)); |
10 |
+ memset(stbuf, 0, sizeof(*stbuf)); |
11 |
stbuf->st_mode = S_IFREG | 0444; |
12 |
stbuf->st_nlink = 1; |
13 |
stbuf->st_size = STATS_SIZE; |