projects
/
finddup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f451010
)
Made an initialization clear to the compiler.
author
Francois Fleuret
<francois@fleuret.org>
Sun, 30 Jun 2013 12:26:41 +0000
(14:26 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Sun, 30 Jun 2013 12:26:41 +0000
(14:26 +0200)
finddup.c
patch
|
blob
|
history
diff --git
a/finddup.c
b/finddup.c
index
0598612
..
cf9948e
100644
(file)
--- a/
finddup.c
+++ b/
finddup.c
@@
-333,11
+333,11
@@
int compare_nodes(const void *x1, const void *x2) {
void exec_command(int nb, struct file_node **nodes) {
char **args;
- int max_group_size = 0, group_size, m, n, status;
+ int max_group_size = 0, group_size
= 0
, m, n, status;
pid_t pid;
for(n = 0; n < nb; n++) {
- if(n
== 0 || n
odes[n]->group_id != nodes[n-1]->group_id) {
+ if(nodes[n]->group_id != nodes[n-1]->group_id) {
group_size = 0;
}
group_size++;