This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/1950] New: wrong return type in posix/regex_internal.c
- From: "heiko dot nardmann at secunet dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 30 Nov 2005 08:15:40 -0000
- Subject: [Bug libc/1950] New: wrong return type in posix/regex_internal.c
- Reply-to: sourceware-bugzilla at sourceware dot org
In file posix/regex_internal.c the function build_wcs_upper_buffer() is defined
as returning int. See:
static int
build_wcs_upper_buffer (pstr)
re_string_t *pstr;
{
...
}
But it is used inside re_string_construct() as a function with enum return
type. In re_string_reconstruct() it is used as int but the int value ('ret') is
returned there despite the fact that re_string_reconstruct() is defined with a
enum return type.
--
Summary: wrong return type in posix/regex_internal.c
Product: glibc
Version: 2.3.5
Status: NEW
Severity: minor
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: heiko dot nardmann at secunet dot com
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=1950
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.