From 88a3b8f9acee4511ef45638488c0751163b503e4 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 6 Feb 2009 16:04:28 +0000 Subject: [PATCH] [BZ #9823] 2009-02-06 Ulrich Drepper [BZ #9823] * stdio-common/psignal.c (psignal): Fix test for empty string. --- ChangeLog | 5 +++++ stdio-common/psignal.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4abf3a2..66534b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-02-06 Ulrich Drepper + + [BZ #9823] + * stdio-common/psignal.c (psignal): Fix test for empty string. + 2009-02-05 Ulrich Drepper * include/rpc/auth.h: Use libc_hidden_proto for _null_auth. 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 = ": "; -- 2.7.4