aboutsummaryrefslogtreecommitdiffstats
path: root/ui-ssdiff.c
diff options
context:
space:
mode:
authorGravatar Jamie Couture <jamie.couture@gmail.com>2012-01-12 12:38:49 (JST)
committerGravatar Lars Hjemli <hjemli@gmail.com>2012-03-18 18:26:31 (JST)
commit6a575b8900734a4640427416885e73c83af70736 (patch)
treee354052b72c10696df3fce3b94b0d279f1bfdced /ui-ssdiff.c
parent19c31231fac828bb336db67b8cccc871bea1500e (diff)
downloadcgit-6a575b8900734a4640427416885e73c83af70736.zip
cgit-6a575b8900734a4640427416885e73c83af70736.tar.gz
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>
Diffstat (limited to 'ui-ssdiff.c')
-rw-r--r--ui-ssdiff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-ssdiff.c b/ui-ssdiff.c
index 45770b1..0cff4b8 100644
--- a/ui-ssdiff.c
+++ b/ui-ssdiff.c
@@ -23,7 +23,7 @@ static void create_or_reset_lcs_table()
23 int i; 23 int i;
24 24
25 if (L != NULL) { 25 if (L != NULL) {
26 memset(*L, 0, sizeof(*L) * MAX_SSDIFF_SIZE); 26 memset(*L, 0, sizeof(int) * MAX_SSDIFF_SIZE);
27 return; 27 return;
28 } 28 }
29 29