diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-01-14 09:06:25 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-01-14 09:06:25 +0000 |
commit | ea161661142ab98568ea811ce791da538da981d1 (patch) | |
tree | 79da250397aa476ac4eec1bbe2108b01e039014e /stdlib | |
parent | 3e539cb47e9fabfdda295926b4270b0f3cc7fa65 (diff) | |
download | glibc-ea161661142ab98568ea811ce791da538da981d1.zip glibc-ea161661142ab98568ea811ce791da538da981d1.tar.gz glibc-ea161661142ab98568ea811ce791da538da981d1.tar.bz2 |
Update.
2005-01-14 Ulrich Drepper <drepper@redhat.com>
* posix/regcomp.c [!_LIBC] (init_dfa): Fix determining of relevant
LC_* variable. Patch by Aharon Robbins <arnold@skeeve.com>.
* stdlib/fmtmsg.c (internal_addseverity): Remove incorrect free call.
* stdlib/tst-fmtmsg.c (main): Add another addseverity test.
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/fmtmsg.c | 5 | ||||
-rw-r--r-- | stdlib/tst-fmtmsg.c | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/stdlib/fmtmsg.c b/stdlib/fmtmsg.c index 2ab97b7..9e654c6 100644 --- a/stdlib/fmtmsg.c +++ b/stdlib/fmtmsg.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1997,1999,2000,2001,2002,2003 Free Software Foundation, Inc. +/* Copyright (C) 1997,1999,2000-2003,2005 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. @@ -324,9 +324,6 @@ internal_addseverity (int severity, const char *string) if (runp != NULL) { - /* Release old string. */ - free ((char *) runp->string); - if (string != NULL) /* Change the string. */ runp->string = string; diff --git a/stdlib/tst-fmtmsg.c b/stdlib/tst-fmtmsg.c index d5369bd..0b244e2 100644 --- a/stdlib/tst-fmtmsg.c +++ b/stdlib/tst-fmtmsg.c @@ -48,5 +48,11 @@ main (void) != MM_OK) result = 1; + if (addseverity (MM_TEST, NULL) != MM_OK) + { + puts ("second addseverity failed"); + result = 1; + } + return result; } |