Module Name: src
Committed By: martin
Date: Mon Jan 30 20:40:39 UTC 2012
Modified Files:
src/sys/dist/ipf/netinet: ipf_rb.h
Log Message:
Initialize "match", it may be used uninitialized, and gcc complains
about it.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/sys/dist/ipf/netinet/ipf_rb.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dist/ipf/netinet/ipf_rb.h
diff -u src/sys/dist/ipf/netinet/ipf_rb.h:1.1.1.1 src/sys/dist/ipf/netinet/ipf_rb.h:1.2
--- src/sys/dist/ipf/netinet/ipf_rb.h:1.1.1.1 Mon Jan 30 16:05:23 2012
+++ src/sys/dist/ipf/netinet/ipf_rb.h Mon Jan 30 20:40:39 2012
@@ -1,4 +1,4 @@
-/* ipf_rb.h,v 1.1.1.1 2012/01/30 16:05:23 darrenr Exp */
+/* ipf_rb.h,v 1.2 2012/01/30 20:40:39 martin Exp */
/*
* Copyright (C) 2011 by Darren Reed.
@@ -339,7 +339,7 @@ _n##_rb_walktree(struct _n##_rb_head *he
_t * \
_n##_rb_search(struct _n##_rb_head *head, void *key) \
{ \
- int match; \
+ int match = 0; \
_t *node; \
node = head->top._f.right; \
while (node != &_n##_rb_zero) { \