HomeFreeBSD

An automatic variable in a local scope is (conceptionally) destroyed with

Description

An automatic variable in a local scope is (conceptionally) destroyed with
the closing brace so it is unwise to keep a pointer to it. Make
the variable static to fix this.

Patch: 7.152

Submitted by: Max Okumoto <okumoto@ucsd.edu>

Details

Provenance
hartiAuthored on Mar 22 2005, 7:56 AM
Parents
rG4896df631415: Simplify buffer access by using Buf_Data() and Buf_Peel() where
Branches
Unknown
Tags
Unknown

Event Timeline