summaryrefslogtreecommitdiff
path: root/ldso/libdl
diff options
context:
space:
mode:
Diffstat (limited to 'ldso/libdl')
-rw-r--r--ldso/libdl/dlib.c2
-rw-r--r--ldso/libdl/libdl.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ldso/libdl/dlib.c b/ldso/libdl/dlib.c
index 579263be7..999139538 100644
--- a/ldso/libdl/dlib.c
+++ b/ldso/libdl/dlib.c
@@ -135,7 +135,7 @@ void *_dlopen(const char *libname, int flag)
#endif
/* A bit of sanity checking... */
- if (!(flag & RTLD_LAZY|RTLD_NOW)) {
+ if (!(flag & (RTLD_LAZY|RTLD_NOW))) {
_dl_error_number = LD_BAD_HANDLE;
return NULL;
}
diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c
index 579263be7..999139538 100644
--- a/ldso/libdl/libdl.c
+++ b/ldso/libdl/libdl.c
@@ -135,7 +135,7 @@ void *_dlopen(const char *libname, int flag)
#endif
/* A bit of sanity checking... */
- if (!(flag & RTLD_LAZY|RTLD_NOW)) {
+ if (!(flag & (RTLD_LAZY|RTLD_NOW))) {
_dl_error_number = LD_BAD_HANDLE;
return NULL;
}