aboutsummaryrefslogtreecommitdiff
path: root/nptl_db/fetch-value.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl_db/fetch-value.c')
-rw-r--r--nptl_db/fetch-value.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nptl_db/fetch-value.c b/nptl_db/fetch-value.c
index bdf1f44..c744401 100644
--- a/nptl_db/fetch-value.c
+++ b/nptl_db/fetch-value.c
@@ -1,5 +1,5 @@
/* Helper routines for libthread_db.
- Copyright (C) 2003-2024 Free Software Foundation, Inc.
+ Copyright (C) 2003-2025 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
@@ -69,7 +69,7 @@ _td_locate_field (td_thragent_t *ta,
}
}
- if (idx != 0 && DB_DESC_NELEM (desc) != 0
+ if (idx != NULL && 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. */