Bug 25308

Summary: libc/locale/lmessages.c declares a global variable 'empty'
Product: Base System Reporter: brandt <brandt>
Component: binAssignee: Alexey Zelkin <phantom>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description brandt 2001-02-23 14:30:01 UTC
libc/locale/lmessages.c contains the following definition:

char empty[] = "";

This is a serious namespace pollution. Probably a 'static' is missing.

How-To-Repeat: 	
Link a program which contains a symbol 'empty' and watch the linker to complain.
Comment 1 Kris Kennaway freebsd_committer freebsd_triage 2001-02-24 07:53:42 UTC
Responsible Changed
From-To: freebsd-bugs->phantom

phantom is responsible for this code
Comment 2 Alexey Zelkin freebsd_committer freebsd_triage 2001-02-24 13:14:25 UTC
State Changed
From-To: open->closed

Fixed in rev 1.6 of lmessages.c