Page MenuHomeFreeBSD

D52940.id163647.diff
No OneTemporary

D52940.id163647.diff

diff --git a/sys/sys/tree.h b/sys/sys/tree.h
--- a/sys/sys/tree.h
+++ b/sys/sys/tree.h
@@ -539,9 +539,10 @@
* 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 the \
+ * compiler. \
*/ \
- 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
Sat, Aug 15, 9:06 PM (9 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36801614
Default Alt Text
D52940.id163647.diff (591 B)

Event Timeline