summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorunknown <tonu@x153.internalnet>2001-08-26 00:18:20 +0800
committerunknown <tonu@x153.internalnet>2001-08-26 00:18:20 +0800
commitcc22852e2e916adca848ae0720131d0963bf8a84 (patch)
tree331432870e74ba240b433c254eede371858b486e /mysys
parentee5ba7642cb68845a4cb07060b50699a58430b27 (diff)
downloadmariadb-git-cc22852e2e916adca848ae0720131d0963bf8a84.tar.gz
Some warning fixes and some SSL testprograms check-in
extra/resolveip.c: Removed warnings about implicit declarations myisam/mi_open.c: Removed warning about unused symbol mysys/my_compress.c: Removed warnings about implicit declaration mysys/string.c: Removed warning about uninitialized variable strings/ctype.c: Removed warning about implicit declaration vio/test-sslclient.c: Testprogram heavy modify vio/test-sslserver.c: Testprogram heavy modify
Diffstat (limited to 'mysys')
-rw-r--r--mysys/my_compress.c1
-rw-r--r--mysys/string.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/mysys/my_compress.c b/mysys/my_compress.c
index 9d94a400f48..11204562ac8 100644
--- a/mysys/my_compress.c
+++ b/mysys/my_compress.c
@@ -21,6 +21,7 @@
#ifdef HAVE_COMPRESS
#include <my_sys.h>
#include <zlib.h>
+#include <m_string.h>
/*
** This replaces the packet with a compressed packet
diff --git a/mysys/string.c b/mysys/string.c
index 96a503c1179..2e0f4d3c9fe 100644
--- a/mysys/string.c
+++ b/mysys/string.c
@@ -51,7 +51,7 @@ my_bool init_dynamic_string(DYNAMIC_STRING *str, const char *init_str,
my_bool dynstr_set(DYNAMIC_STRING *str, const char *init_str)
{
- uint length;
+ uint length=0;
DBUG_ENTER("dynstr_set");
if (init_str && (length= (uint) strlen(init_str)+1) > str->max_length)