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++;
fprintf(out, " -h, --help show this help\n");
fprintf(out, " -d, --ignore-dots ignore dot files and directories\n");
fprintf(out, " -0, --ignore-empty ignore empty files\n");
- fprintf(out, " -c, --hide-matchings do not show which files in DIR2 corresponds to\n");
+ fprintf(out, " -c, --hide-matchings do not show which files in DIR2 correspond to\n");
fprintf(out, " those in DIR1\n");
fprintf(out, " -g, --no-group-ids do not show the file groups\n");
fprintf(out, " -t, --time-sort sort according to modification time in each group\n");