summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-05-01 10:14:45 +0100
committerVincent Sanders <vince@kyllikki.org>2015-05-01 10:14:45 +0100
commit59ceb7f10f39ddb205a14779de3ba58224f93254 (patch)
treef1ab87ad80d5ed20dac3f2dd8b5dbb1c21b2657c
parent22cadbba395422e32988e3d16e1a12ab9a85648d (diff)
downloadlibnsutils-59ceb7f10f39ddb205a14779de3ba58224f93254.tar.gz
libnsutils-59ceb7f10f39ddb205a14779de3ba58224f93254.tar.bz2
Ensure length is correctly initialised in tests.release/0.0.2
-rw-r--r--Makefile2
-rw-r--r--test/base64.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 73dba09..2827729 100644
--- a/Makefile
+++ b/Makefile
@@ -42,7 +42,7 @@ ifeq ($(HOST),x86_64-linux-gnu)
REQUIRED_LIBS := $(REQUIRED_LIBS) rt
endif
-TESTCFLAGGS := -g -O2
+TESTCFLAGS := -g -O2
TESTLDFLAGS := -lm -l$(COMPONENT) $(TESTLDFLAGS)
include $(NSBUILD)/Makefile.top
diff --git a/test/base64.c b/test/base64.c
index 0b4b942..7b09205 100644
--- a/test/base64.c
+++ b/test/base64.c
@@ -22,7 +22,7 @@
int main(int argc, char**argv)
{
uint8_t *buffer;
- size_t buffer_len;
+ size_t buffer_len=0;
uint8_t *output;
size_t output_len;