From cbbc35fae3690d21f6b8fb9bbd13f7e860eadb7f Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Thu, 3 Mar 2005 00:06:42 +0000 Subject: [PATCH] - Made some (incorrect) -Wall warnings dissapear. --- Changes | 1 + src/s_user.c | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Changes b/Changes index 907df1bc7..a9e4aff07 100644 --- a/Changes +++ b/Changes @@ -735,3 +735,4 @@ - Added 3.2.3 release notes (expected to be changed later on). - Updated russian-w1251 (added 2 chars). - Made the (G)ZLINE warning only happen on add, as it should. Reported by crazy. +- Made some (incorrect) -Wall warnings dissapear. diff --git a/src/s_user.c b/src/s_user.c index 26b214b12..3ace76021 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -202,8 +202,8 @@ long set_usermode(char *umode) */ unsigned char *StripColors(unsigned char *text) { - int i = 0, len = strlen(text), save_len; - char nc = 0, col = 0, rgb = 0, *save_text; + int i = 0, len = strlen(text), save_len=0; + char nc = 0, col = 0, rgb = 0, *save_text=NULL; static unsigned char new_str[4096]; while (len > 0) @@ -267,8 +267,8 @@ unsigned char *StripColors(unsigned char *text) { /* strip color, bold, underline, and reverse codes from a string */ const char *StripControlCodes(unsigned char *text) { - int i = 0, len = strlen(text), save_len; - char nc = 0, col = 0, rgb = 0, *save_text; + int i = 0, len = strlen(text), save_len=0; + char nc = 0, col = 0, rgb = 0, *save_text=NULL; static unsigned char new_str[4096]; while (len > 0) {