diff options
author | Volker Lendecke <vl@samba.org> | 2015-03-03 15:57:02 +0100 |
---|---|---|
committer | Ralph Böhme <slow@samba.org> | 2015-03-03 17:34:39 +0100 |
commit | de1bf29d250849ebea1a3badd3e881035c1897b0 (patch) | |
tree | c89b1286e4d7a897053cef3b50974fc7d827fb71 /lib | |
parent | 78fb663d4c29f9a226c26001492cbc7a9a701668 (diff) | |
download | samba-de1bf29d250849ebea1a3badd3e881035c1897b0.tar.gz samba-de1bf29d250849ebea1a3badd3e881035c1897b0.tar.xz samba-de1bf29d250849ebea1a3badd3e881035c1897b0.zip |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/close_low_fd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/close_low_fd.c b/lib/util/close_low_fd.c index b11d25f657..5e74918711 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 */ |