avoid "may be used uninitialized" warning from newer gcc
authorJim Meyering <meyering@redhat.com>
Wed, 16 Apr 2008 09:20:28 +0000 (11:20 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 16 Apr 2008 09:20:28 +0000 (11:20 +0200)
* src/md5sum.c (digest_check) [lint]: Initialize local, "filename".

src/md5sum.c

index 5eb8494..ba762d1 100644 (file)
@@ -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;