summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2009-01-07 01:59:26 +0000
committerRoland McGrath <roland@gnu.org>2009-01-07 01:59:26 +0000
commit0db58a77b432040aaf74ea8fd91c7f9ece3c0901 (patch)
tree06462f7ef30ca5c32020ddd90144533569341b7b
parent3c612057ae7e7f4beac2ac793a85389d0116e6e2 (diff)
downloadglibc-0db58a77b432040aaf74ea8fd91c7f9ece3c0901.tar.gz
glibc-0db58a77b432040aaf74ea8fd91c7f9ece3c0901.tar.xz
glibc-0db58a77b432040aaf74ea8fd91c7f9ece3c0901.zip
2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
	* hurd/report-wait.c (describe_number): Use __stpcpy to prepend
	flavor to description only when flavor is not NULL.
-rw-r--r--hurd/report-wait.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hurd/report-wait.c b/hurd/report-wait.c
index 296b2eec42..f6e48f951e 100644
--- a/hurd/report-wait.c
+++ b/hurd/report-wait.c
@@ -1,5 +1,5 @@
 /* Report on what a thread in our task is waiting for.
-   Copyright (C) 1996,1997,1999,2002,2005 Free Software Foundation, Inc.
+   Copyright (C) 1996,1997,1999,2002,2005,2009 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -30,7 +30,7 @@ static char *
 describe_number (string_t description, const char *flavor, long int i)
 {
   unsigned long int j;
-  char *p = flavor ? description : __stpcpy (description, flavor);
+  char *p = flavor == NULL ? description : __stpcpy (description, flavor);
   char *end;
 
   /* Handle sign.  */