]> err.no Git - util-linux/commitdiff
fsck.cramfs: fix compiler warning
authorKarel Zak <kzak@redhat.com>
Mon, 29 Sep 2008 10:24:38 +0000 (12:24 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 29 Sep 2008 10:24:38 +0000 (12:24 +0200)
fsck.cramfs.c: In function ‘main’:
fsck.cramfs.c:676  warning: ‘length’ may be used uninitialized in this function

Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/fsck.cramfs.c

index aeb766fb392c1f2e7efef1ff6b4b12bfa233a0ed..ef5719521a0e873e22edd0cbe3c5080d5e01ac8c 100644 (file)
@@ -673,7 +673,7 @@ int main(int argc, char **argv)
 {
        int c;                  /* for getopt */
        int start = 0;
-       size_t length;
+       size_t length = 0;
 
        page_size = getpagesize();