summarylogtreecommitdiffstats
path: root/0009-Fixed-warning-about-uninitialized-variable-in-fopen-.patch
blob: 260267870d88d423481799ad6fc9649c7e7660b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From cfaaa3c7bb95068eb0859323988cc7da2a885da3 Mon Sep 17 00:00:00 2001
From: Felipe Eduardo Sanchez Diaz Duran <izto@asic-linux.com.mx>
Date: Mon, 24 Nov 2014 18:57:08 -0600
Subject: [PATCH 09/20] Fixed warning about uninitialized variable in fopen()
 handler

---
 installwatch/installwatch.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/installwatch/installwatch.c b/installwatch/installwatch.c
index 8004b5b..e13c9d8 100644
--- a/installwatch/installwatch.c
+++ b/installwatch/installwatch.c
@@ -2554,6 +2554,8 @@ FILE *fopen(const char *pathname, const char *mode) {
 	if (!libc_handle)
 		initialize();
 
+        result = NULL;
+
 #if DEBUG
 	debug(2,"fopen(%s,%s)\n",pathname,mode);
 #endif
-- 
2.30.0