summaryrefslogtreecommitdiffstats
path: root/patches/logrotate-3.7.1/uncompressChild-warning.patch
blob: 1b8de68f243140c0f238b3ed29e89065dbde48ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
 logrotate.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: logrotate-3.7.1/logrotate.c
===================================================================
--- logrotate-3.7.1.orig/logrotate.c
+++ logrotate-3.7.1/logrotate.c
@@ -209,7 +209,7 @@ static int compressLogFile(char * name, 
 static int mailLog(char * logFile, char * mailCommand, char * uncompressCommand, 
 		   char * address, char * subject) {
     int mailInput;
-    pid_t mailChild, uncompressChild;
+    pid_t mailChild, uncompressChild=-1;
     int mailStatus, uncompressStatus;
     int uncompressPipe[2];
     char * mailArgv[] = { mailCommand, "-s", subject, address, NULL };