summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-04-16 11:20:28 +0200
committerJim Meyering <meyering@redhat.com>2008-04-16 11:20:28 +0200
commitd9cdf8ce28e97c94a66df2e3c0d21b0cf33f2267 (patch)
treeb5223df6e37449e83ac4e25ca9c17faf35296fea
parent5d8b8d8b742dba80dbf5c1c917a3b793de54a112 (diff)
downloadcoreutils-d9cdf8ce28e97c94a66df2e3c0d21b0cf33f2267.tar.xz
avoid "may be used uninitialized" warning from newer gcc
* src/md5sum.c (digest_check) [lint]: Initialize local, "filename".
-rw-r--r--src/md5sum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/md5sum.c b/src/md5sum.c
index 5eb8494b0..ba762d149 100644
--- a/src/md5sum.c
+++ b/src/md5sum.c
@@ -449,7 +449,7 @@ digest_check (const char *checkfile_name)
line_chars_allocated = 0;
do
{
- char *filename;
+ char *filename IF_LINT (= NULL);
int binary;
unsigned char *hex_digest IF_LINT (= NULL);
ssize_t line_length;