summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-10-04 01:18:54 +0200
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-10-20 15:02:34 +0200
commit35144c0b867d03a09118f02f1e9e43111e6f544a (patch)
tree122b76cc5438cc953e5043b6262f37522f016ea7 /commands
parentc495fe0fcd4b6d31cd7383b592c3781d619c25fc (diff)
downloadbarebox-35144c0b867d03a09118f02f1e9e43111e6f544a.tar.gz
barebox-35144c0b867d03a09118f02f1e9e43111e6f544a.tar.xz
xyzModem: fix digit init in xyzModem_stream_open
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'commands')
-rw-r--r--commands/xyzModem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/xyzModem.c b/commands/xyzModem.c
index d4e4bfaf22..7f6955c5ae 100644
--- a/commands/xyzModem.c
+++ b/commands/xyzModem.c
@@ -162,7 +162,7 @@ static bool parse_num(char *s, unsigned long *val, char **es, char *delim)
int radix = 10;
char c;
unsigned long result = 0;
- int digit;
+ int digit = 0;
while (*s == ' ')
s++;