Bug 60544

Summary: [patch] getenv(3) manpage doesn't state the return value from getenv()
Product: Documentation Reporter: Russell Francis <rf358197>
Component: Books & ArticlesAssignee: Tom Rhodes <trhodes>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Russell Francis 2003-12-24 14:00:32 UTC
The getenv(3) manpage doesn't state that the return value should not be freed.  This has the potential of creating confusion for developers who may be tempted to free the value returned from getenv.

Attached is a short diff which clarifies description of the return value from getenv in the manpage.

How-To-Repeat: Type this

#man 3 getenv
Comment 1 dfilter service freebsd_committer freebsd_triage 2006-10-12 09:39:49 UTC
trhodes     2006-10-12 08:39:24 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/stdlib      getenv.3 
  Log:
  Note that the value from getenv() should not be modified by applications.
  
  PR:             60544
  Reviewed by:    ru
  
  Revision  Changes    Path
  1.19      +5 -1      src/lib/libc/stdlib/getenv.3
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 2 Tom Rhodes freebsd_committer freebsd_triage 2006-10-12 09:40:01 UTC
State Changed
From-To: open->patched

Revision 1.15 discussed the return value, so I have committed 
a different fix explaining that applications should not modify 
the return value.  Thanks for the submission! 


Comment 3 Tom Rhodes freebsd_committer freebsd_triage 2006-10-12 09:40:01 UTC
Responsible Changed
From-To: freebsd-doc->trhodes

Over to me, MFC reminder.
Comment 4 Tom Rhodes freebsd_committer freebsd_triage 2006-11-03 08:41:21 UTC
State Changed
From-To: patched->closed

Changes have been merged to RELENG_6, thanks!