about summary refs log tree commit diff
path: root/linuxthreads_db/td_ta_get_stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads_db/td_ta_get_stats.c')
-rw-r--r--linuxthreads_db/td_ta_get_stats.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/linuxthreads_db/td_ta_get_stats.c b/linuxthreads_db/td_ta_get_stats.c
index d8f5fe294f..1741d8145f 100644
--- a/linuxthreads_db/td_ta_get_stats.c
+++ b/linuxthreads_db/td_ta_get_stats.c
@@ -26,5 +26,10 @@ td_ta_get_stats (const td_thragent_t *ta, td_ta_stats_t *statsp)
 {
   /* XXX We have to figure out what has to be done.  */
   LOG (__FUNCTION__);
+
+  /* Test whether the TA parameter is ok.  */
+  if (! ta_ok (ta))
+    return TD_BADTA;
+
   return TD_OK;
 }