diff options
Diffstat (limited to 'nptl_db/fetch-value.c')
-rw-r--r-- | nptl_db/fetch-value.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nptl_db/fetch-value.c b/nptl_db/fetch-value.c index afc26fc1ef..8a5a30cb1f 100644 --- a/nptl_db/fetch-value.c +++ b/nptl_db/fetch-value.c @@ -69,7 +69,8 @@ _td_locate_field (td_thragent_t *ta, } } - if (idx != 0 && idx - (psaddr_t) 0 > DB_DESC_NELEM (desc)) + if (idx != 0 && DB_DESC_NELEM (desc) != 0 + && idx - (psaddr_t) 0 > DB_DESC_NELEM (desc)) /* This is an internal indicator to callers with nonzero IDX that the IDX value is too big. */ return TD_NOAPLIC; |