projects
/
finddup.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed a crashing bug
[finddup.git]
/
finddup.c
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++;