cgit

commit 6a575b8900734a4640427416885e73c83af70736

Author: Jamie Couture <jamie.couture@gmail.com>

use correct type for sizeof

**L would have worked well too.  Depending on the distribution sizeof *L
may return 8 instead of 4. **L is preferable, but since we don't expect
this datatype to change very often, sizeof int is less subtle and easier
to understand.

Signed-off-by: Jamie Couture <jamie.couture@gmail.com>

 ui-ssdiff.c | 2 +-


diff --git a/ui-ssdiff.c b/ui-ssdiff.c
index 45770b1a547fe773dc959a2acc49eebcef74a7f1..0cff4b82ed46c8bc41e07c1392dd9c8e9e3ff75a 100644
--- a/ui-ssdiff.c
+++ b/ui-ssdiff.c
@@ -23,7 +23,7 @@ {
 	int i;
 
 	if (L != NULL) {
-		memset(*L, 0, sizeof(*L) * MAX_SSDIFF_SIZE);
+		memset(*L, 0, sizeof(int) * MAX_SSDIFF_SIZE);
 		return;
 	}