summaryrefslogtreecommitdiff
path: root/ldso/libdl/dlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldso/libdl/dlib.c')
-rw-r--r--ldso/libdl/dlib.c2
1 files changed, 1 insertions, 1 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;
}