public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/9823] New: Error in psignal(int sig, const char * s) if s is an empty string
@ 2009-02-06 15:13 khoroshilov at linuxtesting dot org
2009-02-06 16:04 ` [Bug libc/9823] " drepper at redhat dot com
0 siblings, 1 reply; 3+ messages in thread
From: khoroshilov at linuxtesting dot org @ 2009-02-06 15:13 UTC (permalink / raw)
To: glibc-bugs
/* Print out on stderr a line consisting of the test in S, a colon, a space,
a message describing the meaning of the signal number SIG and a newline.
If S is NULL or "", the colon and space are omitted. */
void
psignal (int sig, const char *s)
{
const char *colon, *desc;
- if (s == NULL || s == '\0')
+ if (s == NULL || *s == '\0')
s = colon = "";
else
colon = ": ";
There is a misprint in the code above (libc/stdio-common/psignal.c).
--
Summary: Error in psignal(int sig, const char * s) if s is an
empty string
Product: glibc
Version: 2.8
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: khoroshilov at linuxtesting dot org
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=9823
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libc/9823] Error in psignal(int sig, const char * s) if s is an empty string
2009-02-06 15:13 [Bug libc/9823] New: Error in psignal(int sig, const char * s) if s is an empty string khoroshilov at linuxtesting dot org
@ 2009-02-06 16:04 ` drepper at redhat dot com
0 siblings, 0 replies; 3+ messages in thread
From: drepper at redhat dot com @ 2009-02-06 16:04 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2009-02-06 16:04 -------
Fixed in cvs.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=9823
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libc/9823] Error in psignal(int sig, const char * s) if s is an empty string
[not found] <bug-9823-131@http.sourceware.org/bugzilla/>
@ 2014-07-01 20:57 ` fweimer at redhat dot com
0 siblings, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2014-07-01 20:57 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=9823
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-07-01 20:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-06 15:13 [Bug libc/9823] New: Error in psignal(int sig, const char * s) if s is an empty string khoroshilov at linuxtesting dot org
2009-02-06 16:04 ` [Bug libc/9823] " drepper at redhat dot com
[not found] <bug-9823-131@http.sourceware.org/bugzilla/>
2014-07-01 20:57 ` fweimer at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).