From: oetiker Date: Sat, 8 Nov 2008 18:01:01 +0000 (+0000) Subject: rrdcached: journal_replay default failure reason, just in case X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2d67874e0519bd8ee74baeea9dc961a7021696bc;p=rrdtool.git rrdcached: journal_replay default failure reason, just in case avoids a "may be used uninitialized" warning -- kevin git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1657 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c index e2a1813..5231942 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;