tFix allocation size - dedup - deduplicating backup program
(HTM) git clone git://git.z3bra.org/dedup.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 696c1e07ef2ef69da9050c37c346f6ec62fbeeb8
(DIR) parent 2bd17f0fc119a96101741081d04a0d236bc96861
(HTM) Author: sin <sin@2f30.org>
Date: Fri, 26 Apr 2019 16:02:15 +0100
Fix allocation size
Diffstat:
M snap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/snap.c b/snap.c
t@@ -148,7 +148,7 @@ sopen(char *path, int flags, int mode, struct sctx **sctx)
if (fd < 0)
return -1;
- *sctx = calloc(1, sizeof(*sctx));
+ *sctx = calloc(1, sizeof(**sctx));
if (*sctx == NULL) {
close(fd);
return -1;