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=eda8dd2040e506f5ff721eed4b89b53feb9f5770;p=rrdtool-all.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@1657 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_daemon.c b/program/src/rrd_daemon.c index e2a1813a..52319426 100644 --- a/program/src/rrd_daemon.c +++ b/program/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;