Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Unified Diff: src/common/tuklib_open_stdxxx.c

Issue 12568011: Update XZ Utils to 5.0.4 (third_party) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/xz/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/common/tuklib_open_stdxxx.c
===================================================================
--- src/common/tuklib_open_stdxxx.c (revision 87706)
+++ src/common/tuklib_open_stdxxx.c (working copy)
@@ -39,12 +39,14 @@
| (i == 0 ? O_WRONLY : O_RDONLY));
if (fd != i) {
+ if (fd != -1)
+ (void)close(fd);
+
// Something went wrong. Exit with the
// exit status we were given. Don't try
// to print an error message, since stderr
// may very well be non-existent. This
// error should be extremely rare.
- (void)close(fd);
exit(err_status);
}
}
« README.chromium ('K') | « src/common/sysdefs.h ('k') | src/liblzma/Makefile.am » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698