[rrd-developers] [PATCH] rrdcached: journal_replay default failure reason, just in case

kevin brintnall kbrint at rufus.net
Fri Nov 7 22:21:51 CET 2008


avoids a "may be used uninitialized" warning
---
 src/rrd_daemon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c
index 4a686a0..4ad1d78 100644
--- a/src/rrd_daemon.c
+++ b/src/rrd_daemon.c
@@ -1761,7 +1761,7 @@ static int journal_replay (const char *file) /* {{{ */
   if (file == NULL) return 0;
 
   {
-    char *reason;
+    char *reason = "unknown error";
     int status = 0;
     struct stat statbuf;
 
-- 
1.6.0.3



More information about the rrd-developers mailing list