From 9532eb67a4a92baab960d8d37bfa28048285dabb Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 5 Nov 1999 02:26:16 +0000 Subject: Update. 1999-11-03 Ulrich Drepper * Versions.def: Add version for libthread_db. --- linuxthreads_db/td_ta_get_nthreads.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'linuxthreads_db/td_ta_get_nthreads.c') diff --git a/linuxthreads_db/td_ta_get_nthreads.c b/linuxthreads_db/td_ta_get_nthreads.c index 13d50329c1..9396250534 100644 --- a/linuxthreads_db/td_ta_get_nthreads.c +++ b/linuxthreads_db/td_ta_get_nthreads.c @@ -28,6 +28,10 @@ td_ta_get_nthreads (const td_thragent_t *ta, int *np) LOG (__FUNCTION__); + /* Test whether the TA parameter is ok. */ + if (! ta_ok (ta)) + return TD_BADTA; + /* Access the variable `__pthread_handles_num'. */ if (ps_pglobal_lookup (ta->ph, LIBPTHREAD_SO, "__pthread_handles_num", &addr) != PS_OK) -- cgit v1.2.1