Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'cb/fsmonitor-intfix'
author
Junio C Hamano
<gitster@pobox.com>
Tue, 9 Jul 2019 22:25:38 +0000
(15:25 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 9 Jul 2019 22:25:38 +0000
(15:25 -0700)
Variable type fix.
* cb/fsmonitor-intfix:
fsmonitor: avoid signed integer overflow / infinite loop
1
2
fsmonitor.c
patch
|
diff1
|
diff2
|
blob
|
history
raw
|
combined
(merge:
891c1c2
5d137fc
)
diff --cc
fsmonitor.c
index 1dee0aded1c433c7cfb90195328f270559c9b421,df55d9dc2293615361b12b1e41219a479c1f073e..231e83a94db58e4efb2f4d7a1dbe90220bd2f317
---
1
/
fsmonitor.c
---
2
/
fsmonitor.c
+++ b/
fsmonitor.c
@@@
-134,11
-135,11
+134,11
@@@
void refresh_fsmonitor(struct index_sta
size_t bol; /* beginning of line */
uint64_t last_update;
char *buf;
- int i;
+
unsigned
int i;
- if (!core_fsmonitor || has_run_once)
+ if (!core_fsmonitor ||
istate->fsmonitor_
has_run_once)
return;
- has_run_once = 1;
+
istate->fsmonitor_
has_run_once = 1;
trace_printf_key(&trace_fsmonitor, "refresh fsmonitor");
/*