summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2011-04-11 05:40:52 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2011-04-11 05:40:52 +0200
commit14f24f2a98a63a5c5525fd196df46100b4ef626d (patch)
tree29354f62d34321ceeaa57dd3827aad9531f47261
parentf10945e0ab91484c6e70fdfd8530675f9e7a7728 (diff)
Initialize num.
-rw-r--r--foo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/foo.h b/foo.h
index d6bb028..312d839 100644
--- a/foo.h
+++ b/foo.h
@@ -1,6 +1,6 @@
int usbprintf(USBSerial& usbs, const char* format, ...) {
int32_t* argp = (int32_t*)&format;
- int num;
+ int num = 0;
while(*format) {
if(*format != '%') {