From d5023fbd6d00a04fc74a72f5db894644cf925422 Mon Sep 17 00:00:00 2001 From: mludvig Date: Tue, 12 Jan 2010 09:52:40 +0000 Subject: [PATCH] * buspirate.c: Initialise firmware version to v0.0 prior to parsing the buspirate banner. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@906 81a1dc3b-b13d-400b-aceb-764788c761c2 --- ChangeLog | 5 +++++ buspirate.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7b64eb15..8d593a72 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-01-12 Michal Ludvig + + * buspirate.c: Initialise firmware version to v0.0 + prior to parsing the buspirate banner. + 2010-01-11 Joerg Wunsch Clean-up the Xmega erase functions. diff --git a/buspirate.c b/buspirate.c index fb06c074..32863d0b 100644 --- a/buspirate.c +++ b/buspirate.c @@ -535,7 +535,7 @@ static void buspirate_enable(struct programmer_t *pgm) { unsigned char *reset_str = "#\n"; char *rcvd; - int fw_v1, fw_v2; + int fw_v1 = 0, fw_v2 = 0; int rc, print_banner = 0; printf("Detecting BusPirate...\n");