Major code cleanup:

- Initialized and zeroed out local variables
- Check for some null pointers
- Fixed some typos
- Other minor changes (beautify, etc.)
This commit is contained in:
Nicola Ruggero
2010-11-03 16:59:26 +01:00
parent 104f762e5d
commit 4cf06dbbcb
32 changed files with 756 additions and 574 deletions
+5 -5
View File
@@ -327,8 +327,8 @@ lib_mod_event(struct vnc* v, int msg, long param1, long param2,
int DEFAULT_CC
get_pixel_safe(char* data, int x, int y, int width, int height, int bpp)
{
int start;
int shift;
int start = 0;
int shift = 0;
if (x < 0)
{
@@ -391,8 +391,8 @@ void DEFAULT_CC
set_pixel_safe(char* data, int x, int y, int width, int height, int bpp,
int pixel)
{
int start;
int shift;
int start = 0;
int shift = 0;
if (x < 0)
{
@@ -1088,7 +1088,7 @@ connections", 0);
{
if (v->server_bpp != v->mod_bpp)
{
v->server_msg(v, "error - server and client bpp don't match", 0);
v->server_msg(v, "error - server bpp and client bpp do not match", 0);
error = 1;
}
}