Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dist/ipf/netinet Initialize "match", it may be used unin...
details: https://anonhg.NetBSD.org/src/rev/eda1739b710a
branches: trunk
changeset: 773317:eda1739b710a
user: martin <martin%NetBSD.org@localhost>
date: Mon Jan 30 20:40:39 2012 +0000
description:
Initialize "match", it may be used uninitialized, and gcc complains
about it.
diffstat:
sys/dist/ipf/netinet/ipf_rb.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r a7e71f8e908f -r eda1739b710a sys/dist/ipf/netinet/ipf_rb.h
--- a/sys/dist/ipf/netinet/ipf_rb.h Mon Jan 30 20:10:27 2012 +0000
+++ b/sys/dist/ipf/netinet/ipf_rb.h Mon Jan 30 20:40:39 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ipf_rb.h,v 1.1.1.1 2012/01/30 16:05:23 darrenr Exp $ */
+/* $NetBSD: ipf_rb.h,v 1.2 2012/01/30 20:40:39 martin Exp $ */
/*
* Copyright (C) 2011 by Darren Reed.
@@ -339,7 +339,7 @@
_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) { \
Home |
Main Index |
Thread Index |
Old Index