summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2015-03-03 15:57:02 +0100
committerRalph Böhme <slow@samba.org>2015-03-03 17:34:39 +0100
commitde1bf29d250849ebea1a3badd3e881035c1897b0 (patch)
treec89b1286e4d7a897053cef3b50974fc7d827fb71
parent78fb663d4c29f9a226c26001492cbc7a9a701668 (diff)
downloadsamba-de1bf29d250849ebea1a3badd3e881035c1897b0.tar.gz
lib: Fix CID 1273073 Assign instead of compare
This is a brown paper bag thingy, right? Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r--lib/util/close_low_fd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/close_low_fd.c b/lib/util/close_low_fd.c
index b11d25f657e..5e749187113 100644
--- a/lib/util/close_low_fd.c
+++ b/lib/util/close_low_fd.c
@@ -28,7 +28,7 @@ _PUBLIC_ int close_low_fd(int fd)
dev_null = open("/dev/null", O_RDWR, 0);
- if ((dev_null == -1) && (errno = ENFILE)) {
+ if ((dev_null == -1) && (errno == ENFILE)) {
/*
* Try to free up an fd
*/