Copyright Digital Equipment Corp. All rights reserved.

RETLOCALADDR

Message        This return statement returns the address of a local
               variable.  The address returned cannot be used by the
               caller in any meaningful way.

Description    The storage for all local variables is undefined
               after a function has returned.  Returning the address
               of a local variable will cause undefined behavior
               when the return value is used in the calling program.

User Action    Either change the variable to have static storage
               duration, use malloc to allocate the storage (and
               free it after its use), or change the interface to
               have the caller pass in the address at which data is
               to be stored.