Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3]: src/usr.bin/gzip Pull up revision 1.7 (requested by lukem in ...



details:   https://anonhg.NetBSD.org/src/rev/e0af0af29918
branches:  netbsd-3
changeset: 576241:e0af0af29918
user:      snj <snj%NetBSD.org@localhost>
date:      Wed Jun 15 06:06:01 2005 +0000

description:
Pull up revision 1.7 (requested by lukem in ticket #421):
Fix numerous uninitalized variables.
Detected with gcc -Wuninitialized.

diffstat:

 usr.bin/gzip/unbzip2.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r f5b3b5229679 -r e0af0af29918 usr.bin/gzip/unbzip2.c
--- a/usr.bin/gzip/unbzip2.c    Wed Jun 15 06:00:47 2005 +0000
+++ b/usr.bin/gzip/unbzip2.c    Wed Jun 15 06:06:01 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: unbzip2.c,v 1.6 2004/09/05 21:32:30 dsl Exp $  */
+/*     $NetBSD: unbzip2.c,v 1.6.2.1 2005/06/15 06:06:01 snj Exp $      */
 
 /* This file is #included by gzip.c */
 
@@ -6,7 +6,7 @@
 unbzip2(int in, int out, char *pre, size_t prelen, off_t *bytes_in)
 {
        int             ret, end_of_file;
-       size_t          n;
+       size_t          n = 0;
        off_t           bytes_out = 0;
        bz_stream       bzs;
        static char     *inbuf, *outbuf;



Home | Main Index | Thread Index | Old Index