diff options
author | Collin Funk <collin.funk1@gmail.com> | 2025-06-07 16:20:27 -0700 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2025-06-18 15:57:13 -0300 |
commit | c3b9abaf33082c89ff385b378e083aad1255f508 (patch) | |
tree | c5a0e11b3151b1dec3705911bd47ff7b25f031a6 | |
parent | f165e244e4c72493cf52cd6c98f989321f29c677 (diff) | |
download | glibc-c3b9abaf33082c89ff385b378e083aad1255f508.zip glibc-c3b9abaf33082c89ff385b378e083aad1255f508.tar.gz glibc-c3b9abaf33082c89ff385b378e083aad1255f508.tar.bz2 |
posix: Add nonnull attribute to glob_pattern_p.
* posix/glob.h (glob_pattern_p): Add __nonnull ((1)) since this function
expects a string and does not check for NULL.
Signed-off-by: Collin Funk <collin.funk1@gmail.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-rw-r--r-- | posix/glob.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/posix/glob.h b/posix/glob.h index 6bb0c6f..e5442dd 100644 --- a/posix/glob.h +++ b/posix/glob.h @@ -195,7 +195,8 @@ extern void globfree64 (glob64_t *__pglob) __THROW; This function is not part of the interface specified by POSIX.2 but several programs want to use it. */ -extern int glob_pattern_p (const char *__pattern, int __quote) __THROW; +extern int glob_pattern_p (const char *__pattern, int __quote) __THROW + __nonnull ((1)); #endif __END_DECLS |