X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=finddup.git;a=blobdiff_plain;f=finddup.c;h=7f223136d4f3e06904e5669ffa1546c3041a6118;hp=6f6af386fa619052b7bbf05988f7ea7ec21fd72f;hb=75a53596aff9a5b29a808b7f29dfc80925d2627c;hpb=6555f271e8457b46ed5f46032511ad9e8ea98a5a diff --git a/finddup.c b/finddup.c index 6f6af38..7f22313 100644 --- 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 && nodes[n]->group_id != nodes[n-1]->group_id) { group_size = 0; } group_size++;