[tracker] ttl2sgml: Do not call fclose if file is NULL
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] ttl2sgml: Do not call fclose if file is NULL
- Date: Tue, 7 Feb 2012 08:04:24 +0000 (UTC)
commit 26bf6150db206d15aa66653b2ac7af405e33341c
Author: JÃrg Billeter <j bitron ch>
Date: Thu Jan 26 16:03:26 2012 +0100
ttl2sgml: Do not call fclose if file is NULL
docs/tools/ttl2sgml.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/docs/tools/ttl2sgml.c b/docs/tools/ttl2sgml.c
index 898d75c..8cc9302 100644
--- a/docs/tools/ttl2sgml.c
+++ b/docs/tools/ttl2sgml.c
@@ -116,7 +116,10 @@ main (gint argc, gchar **argv)
g_option_context_free (context);
fclose (f);
- fclose (fts);
+
+ if (fts) {
+ fclose (fts);
+ }
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]