[Tux3] Initialize rest_limit_adjust before use
Liu XiaoFeng
bladehliu at gmail.com
Tue Dec 30 08:23:57 PST 2008
There is a warning when tux3 is compiled:
"fs/tux3/dleaf.c:300: warning: 'rest_limit_adjust' may be used uninitialized
in this function"
Remove it by a trivial patch.
Cheers,
xiaofeng
---
--- tux3.org/dleaf.c 2008-12-30 22:32:49.000000000 +0800
+++ tux3/dleaf.c 2008-12-30 22:37:45.000000000 +0800
@@ -297,7 +297,7 @@ void dleaf_merge(struct btree *btree, vl
struct group *group2 = gdict2 - 1;
struct group *gstop2 = gdict2 - dleaf_groups(from);
struct entry *edict2 = (struct entry *)gstop2;
- unsigned merge_gcount = 0, rest_gcount = 0, rest_limit_adjust;
+ unsigned merge_gcount = 0, rest_gcount = 0, rest_limit_adjust = 0;
int can_merge_group = 0;
assert(dleaf_groups(leaf) >= 1);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://phunq.net/pipermail/tux3/attachments/20081231/4ac2706a/attachment.html>
-------------- next part --------------
_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://mailman.tux3.org/cgi-bin/mailman/listinfo/tux3
More information about the Tux3
mailing list