Fix uninitialized variable.
authorEric Andersen <andersen@codepoet.org>
Thu, 13 Jul 2000 19:49:12 +0000 (19:49 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 13 Jul 2000 19:49:12 +0000 (19:49 -0000)
 -Erik

coreutils/tr.c
tr.c

index 563ee0837803240ced790b9201e90ada9e64ab82..89fe3f5b029d9f19cc163fdaf2b371d3dfb2f568 100644 (file)
@@ -160,7 +160,7 @@ static int complement(unsigned char *buffer, unsigned int buffer_len)
 extern int tr_main(int argc, char **argv)
 {
        register unsigned char *ptr;
-       unsigned int output_length, input_length;
+       unsigned int output_length=0, input_length;
        int index = 1;
        short i;
 
diff --git a/tr.c b/tr.c
index 563ee0837803240ced790b9201e90ada9e64ab82..89fe3f5b029d9f19cc163fdaf2b371d3dfb2f568 100644 (file)
--- a/tr.c
+++ b/tr.c
@@ -160,7 +160,7 @@ static int complement(unsigned char *buffer, unsigned int buffer_len)
 extern int tr_main(int argc, char **argv)
 {
        register unsigned char *ptr;
-       unsigned int output_length, input_length;
+       unsigned int output_length=0, input_length;
        int index = 1;
        short i;