From 9e55f542b93e77b7d1c705a608705670552cdc7d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 11 Dec 2015 16:15:43 +0100 Subject: fix uninitialised variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/pattern.c | 2 +- src/scrotty.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pattern.c b/src/pattern.c index 8031469..4075a6f 100644 --- a/src/pattern.c +++ b/src/pattern.c @@ -79,7 +79,7 @@ try_evaluate (char *restrict buf, size_t n, const char *restrict pattern, size_t i = 0; ssize_t j = 0; - int percent = 0, backslash = 0, dollar = 0, r; + int percent = 0, backslash = 0, dollar = 0, r = 0; char c; char *fmt = NULL; time_t t; diff --git a/src/scrotty.c b/src/scrotty.c index 32b2168..30c1dcc 100644 --- a/src/scrotty.c +++ b/src/scrotty.c @@ -79,7 +79,7 @@ static int save (const char *fbpath, const char *imgpath, long width, long height, int raw, void *restrict data) { - int imgfd = -1, fbfd; + int imgfd = -1, fbfd = -1; int saved_errno; /* Open output file. */ -- cgit v1.2.3-70-g09d2