fixed potential unitialized variables, one array overflow

svn-id: r30571
This commit is contained in:
Paweł Kołodziejski 2008-01-19 20:00:36 +00:00
parent 703667b606
commit 604d4d96ea
2 changed files with 4 additions and 4 deletions

View File

@ -552,7 +552,7 @@ bool AgiEngine::matchWord(void) {
return false;
}
// Lookup word in the dictionary
int line, span, cmpRes, len;
int line = 0, span, cmpRes, len;
char target[MAXWORDLEN];
strncpy(target, _currentCode.c_str(), MAXWORDLEN);

View File

@ -1435,8 +1435,8 @@ static char *getLine(Common::File *fp, char *buf, int len) {
}
void DrasculaEngine::carga_escoba(const char *nom_fich) {
int soc, l, martin, obj_salir;
float chiquez, pequegnez = 0;
int soc, l, martin = 0, obj_salir;
float chiquez = 0, pequegnez = 0;
char pant1[20], pant2[20], pant3[20], pant4[20];
char para_codificar[20];
char buffer[256];
@ -5523,7 +5523,7 @@ void DrasculaEngine::conversa(const char *nom_fich) {
int juego1 = 1, juego2 = 1, juego3 = 1, juego4 = 1;
char frase1[78];
char frase2[78];
char frase3[78];
char frase3[79];
char frase4[78];
char para_codificar[13];
char suena1[13];