aboutsummaryrefslogtreecommitdiffstats
path: root/src/scrotty.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-11 16:15:43 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-11 16:15:43 +0100
commit9e55f542b93e77b7d1c705a608705670552cdc7d (patch)
tree6b452672b87b5e59a5e02c9c5812e7b8c77fde2c /src/scrotty.c
parentthe kernel-specific functions can fetch and use additional data it may need (diff)
downloadscrotty-9e55f542b93e77b7d1c705a608705670552cdc7d.tar.gz
scrotty-9e55f542b93e77b7d1c705a608705670552cdc7d.tar.bz2
scrotty-9e55f542b93e77b7d1c705a608705670552cdc7d.tar.xz
fix uninitialised variables
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--src/scrotty.c2
1 files changed, 1 insertions, 1 deletions
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. */