Page MenuHomeFreeBSD

D52940.diff
No OneTemporary

D52940.diff

diff --git a/sys/sys/tree.h b/sys/sys/tree.h
--- a/sys/sys/tree.h
+++ b/sys/sys/tree.h
@@ -541,9 +541,9 @@
* So the first loop iteration cannot lead to accessing an \
* uninitialized 'child', and a later iteration can only happen \
* when a value has been assigned to 'child' in the previous \
- * one. \
+ * one. Nevertheless, initialize 'child' to appease GCC. \
*/ \
- struct type *child, *child_up, *gpar; \
+ struct type *child = NULL, *child_up, *gpar; \
__uintptr_t elmdir, sibdir; \
\
do { \

File Metadata

Mime Type
text/plain
Expires
Wed, Apr 8, 5:19 AM (15 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31079174
Default Alt Text
D52940.diff (568 B)

Event Timeline