summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen2000-07-13 19:49:12 +0000
committerEric Andersen2000-07-13 19:49:12 +0000
commit156959ea938f2db927ed49ec19a4f993a30591bf (patch)
treefbcf95987c707aad19eb443dd2bc88259104c4cf
parentf4c022649b73fcc05f4b8f7ae3dc7036f58de96d (diff)
downloadbusybox-156959ea938f2db927ed49ec19a4f993a30591bf.zip
busybox-156959ea938f2db927ed49ec19a4f993a30591bf.tar.gz
Fix uninitialized variable.
-Erik
-rw-r--r--coreutils/tr.c2
-rw-r--r--tr.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/tr.c b/coreutils/tr.c
index 563ee08..89fe3f5 100644
--- a/coreutils/tr.c
+++ b/coreutils/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;
diff --git a/tr.c b/tr.c
index 563ee08..89fe3f5 100644
--- 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;