From cc22852e2e916adca848ae0720131d0963bf8a84 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 26 Aug 2001 00:18:20 +0800 Subject: 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 --- mysys/my_compress.c | 1 + mysys/string.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'mysys') 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 #include +#include /* ** 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) -- cgit v1.2.1