projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22b361d
)
lib/rbtree_test.c: fix uninitialized variable warning
author
Cong Ding
<
[email protected]
>
Tue, 18 Dec 2012 00:01:43 +0000
(16:01 -0800)
committer
Linus Torvalds
<
[email protected]
>
Tue, 18 Dec 2012 01:15:18 +0000
(17:15 -0800)
Fix this warning:
lib/rbtree_test.c: In function `check':
lib/rbtree_test.c:121: warning: `blacks' may be used uninitialized in this function
Signed-off-by: Cong Ding <
[email protected]
>
Cc: Michel Lespinasse <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
lib/rbtree_test.c
patch
|
blob
|
history
diff --git
a/lib/rbtree_test.c
b/lib/rbtree_test.c
index 268b23951fec871d77a790c290637b3d3caf75e8..d7f491a5457915a949ebd5cd33863e4d721f9cf0 100644
(file)
--- a/
lib/rbtree_test.c
+++ b/
lib/rbtree_test.c
@@
-118,7
+118,7
@@
static void check(int nr_nodes)
{
struct rb_node *rb;
int count = 0;
- int blacks;
+ int blacks
= 0
;
u32 prev_key = 0;
for (rb = rb_first(&root); rb; rb = rb_next(rb)) {