From b7a3976456c92f9a3a518f5101d64a454c0683e8 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 23 May 2013 00:43:37 +0900 Subject: [PATCH] Fix position of parenthesis --- src/GZipFile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GZipFile.cc b/src/GZipFile.cc index 2eda8f97..b3662227 100644 --- a/src/GZipFile.cc +++ b/src/GZipFile.cc @@ -57,7 +57,7 @@ GZipFile::GZipFile(const char* filename, const char* mode) open_ = fp; if (open_) { int fd = dup(fileno(fp)); - if ((open_ = fd) >= 0) { + if ((open_ = (fd >= 0))) { open_ = (fp_ = gzdopen(fd, mode)); if (!open_) { ::close(fd);