projects
/
finddup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6555f27
)
Fixed a crashing bug
author
Francois Fleuret
<francois@fleuret.org>
Thu, 18 Oct 2018 05:43:22 +0000
(07:43 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Thu, 18 Oct 2018 05:43:22 +0000
(07:43 +0200)
There was a segfault generating bug when estimating the maximum group size in exec_command.
finddup.c
patch
|
blob
|
history
diff --git
a/finddup.c
b/finddup.c
index
6f6af38
..
7f22313
100644
(file)
--- a/
finddup.c
+++ b/
finddup.c
@@
-337,7
+337,7
@@
void exec_command(int nb, struct file_node **nodes) {
pid_t pid;
for(n = 0; n < nb; n++) {
- if(nodes[n]->group_id != nodes[n-1]->group_id) {
+ if(n
> 0 && n
odes[n]->group_id != nodes[n-1]->group_id) {
group_size = 0;
}
group_size++;