diff options
author | peter <peter@FreeBSD.org> | 1996-10-29 18:45:20 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-10-29 18:45:20 +0000 |
commit | 8a114aa2ad6acc04e79dd807249d39e308b5c36c (patch) | |
tree | c2f0234bc773cecf526aef266999bf9441bd27db /usr.bin/ldd/ldd.c | |
parent | f0f159e0c867cc0c9ca814f64b4e268a3e05a24a (diff) | |
download | FreeBSD-src-8a114aa2ad6acc04e79dd807249d39e308b5c36c.zip FreeBSD-src-8a114aa2ad6acc04e79dd807249d39e308b5c36c.tar.gz |
oops, uninitialised variable.. -v mode depended on stack contents.
Submitted by: Masafumi NAKANE <max@wide.ad.jp>, PR#1920
Diffstat (limited to 'usr.bin/ldd/ldd.c')
-rw-r--r-- | usr.bin/ldd/ldd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ldd/ldd.c b/usr.bin/ldd/ldd.c index 841baf8..cfa07a5 100644 --- a/usr.bin/ldd/ldd.c +++ b/usr.bin/ldd/ldd.c @@ -27,7 +27,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: ldd.c,v 1.6 1996/10/01 01:34:32 peter Exp $ + * $Id: ldd.c,v 1.7 1996/10/01 02:16:15 peter Exp $ */ #include <sys/types.h> @@ -64,7 +64,7 @@ char *argv[]; char *fmt1 = NULL, *fmt2 = NULL; int rval; int c; - int vflag; + int vflag = 0; while ((c = getopt(argc, argv, "vf:")) != EOF) { switch (c) { |