diff options
author | Ulrich Drepper <drepper@redhat.com> | 2009-02-06 16:04:28 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-02-06 16:04:28 +0000 |
commit | 88a3b8f9acee4511ef45638488c0751163b503e4 (patch) | |
tree | 6042f1f7a68f9c2bc785d37d063446f5dde4f404 /stdio-common/psignal.c | |
parent | 4f7408c7acb37dd53294e848326a317358f8fdd0 (diff) | |
download | glibc-88a3b8f9acee4511ef45638488c0751163b503e4.zip glibc-88a3b8f9acee4511ef45638488c0751163b503e4.tar.gz glibc-88a3b8f9acee4511ef45638488c0751163b503e4.tar.bz2 |
[BZ #9823]
2009-02-06 Ulrich Drepper <drepper@redhat.com>
[BZ #9823]
* stdio-common/psignal.c (psignal): Fix test for empty string.
Diffstat (limited to 'stdio-common/psignal.c')
-rw-r--r-- | stdio-common/psignal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stdio-common/psignal.c b/stdio-common/psignal.c index 98049a5..c811105 100644 --- a/stdio-common/psignal.c +++ b/stdio-common/psignal.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992, 1995, 1996, 1997, 2001, 2002, 2004, 2005 +/* Copyright (C) 1991, 1992, 1995, 1996, 1997, 2001, 2002, 2004, 2005, 2009 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -37,7 +37,7 @@ psignal (int sig, const char *s) { const char *colon, *desc; - if (s == NULL || s == '\0') + if (s == NULL || *s == '\0') s = colon = ""; else colon = ": "; |