libtimezonemap/0005-Don-t-close-a-NULL-file-pointer.patch

27 lines
651 B
Diff

From eddbdda3d7aecce37fb889ea1b9754659aae872c Mon Sep 17 00:00:00 2001
From: David Shea <dshea@redhat.com>
Date: Thu, 14 Nov 2013 10:50:49 -0500
Subject: [PATCH 05/10] Don't close a NULL file pointer.
parse_file attempted to close a NULL pointer if it was unable to open
the given file, causing a crash.
---
src/tz.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/tz.c b/src/tz.c
index 9393ba2..95bfca0 100644
--- a/src/tz.c
+++ b/src/tz.c
@@ -54,7 +54,6 @@ void parse_file (const char * filename,
if (!fh)
{
g_warning ("Could not open *%s*\n", filename);
- fclose (fh);
return;
}
--
1.8.4.2