diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-11 16:15:43 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-11 16:15:43 +0100 |
commit | 9e55f542b93e77b7d1c705a608705670552cdc7d (patch) | |
tree | 6b452672b87b5e59a5e02c9c5812e7b8c77fde2c /src/pattern.c | |
parent | the kernel-specific functions can fetch and use additional data it may need (diff) | |
download | scrotty-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 'src/pattern.c')
-rw-r--r-- | src/pattern.c | 2 |
1 files changed, 1 insertions, 1 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; |