about summary refs log tree commit diff
path: root/nptl_db/td_thr_get_info.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-02-06 17:05:47 +0000
committerUlrich Drepper <drepper@redhat.com>2009-02-06 17:05:47 +0000
commit2191e7ffa2c7617ece91d5b9c384d0d3189411e0 (patch)
tree0916f0dd1aa855d1fae090c4912e372bf460ed58 /nptl_db/td_thr_get_info.c
parent88a3b8f9acee4511ef45638488c0751163b503e4 (diff)
downloadglibc-2191e7ffa2c7617ece91d5b9c384d0d3189411e0.tar.gz
glibc-2191e7ffa2c7617ece91d5b9c384d0d3189411e0.tar.xz
glibc-2191e7ffa2c7617ece91d5b9c384d0d3189411e0.zip
* td_thr_get_info.c (td_thr_get_info): Initialize schedpolicy in
	the special case [Coverity CID 251].
Diffstat (limited to 'nptl_db/td_thr_get_info.c')
-rw-r--r--nptl_db/td_thr_get_info.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nptl_db/td_thr_get_info.c b/nptl_db/td_thr_get_info.c
index 99e5e19bf9..52985603bf 100644
--- a/nptl_db/td_thr_get_info.c
+++ b/nptl_db/td_thr_get_info.c
@@ -1,5 +1,5 @@
 /* Get thread information.
-   Copyright (C) 1999,2000,2001,2002,2003,2007 Free Software Foundation, Inc.
+   Copyright (C) 1999-2003,2007,2009 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 1999.
 
@@ -38,6 +38,7 @@ td_thr_get_info (const td_thrhandle_t *th, td_thrinfo_t *infop)
       copy = NULL;
       tls = 0;
       cancelhandling = 0;
+      schedpolicy = SCHED_OTHER;
       schedprio = 0;
       tid = 0;
       err = DB_GET_VALUE (report_events, th->th_ta_p,