summaryrefslogtreecommitdiffstats
path: root/vnc
diff options
context:
space:
mode:
authorNicola Ruggero <nicola@nxnt.org>2010-11-03 16:59:26 +0100
committerNicola Ruggero <nicola@nxnt.org>2010-11-03 16:59:26 +0100
commit4cf06dbbcb8522be5fa069976c8f361fc874039f (patch)
tree6e074a89c4edadf9a75d648d1f9daf36079c03aa /vnc
parent104f762e5d3dcd659415632f442e745cef5a3bf2 (diff)
downloadxrdp-proprietary-4cf06dbbcb8522be5fa069976c8f361fc874039f.tar.gz
xrdp-proprietary-4cf06dbbcb8522be5fa069976c8f361fc874039f.zip
Major code cleanup:
- Initialized and zeroed out local variables - Check for some null pointers - Fixed some typos - Other minor changes (beautify, etc.)
Diffstat (limited to 'vnc')
-rw-r--r--vnc/vnc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/vnc/vnc.c b/vnc/vnc.c
index 2b3ab530..0c321d47 100644
--- a/vnc/vnc.c
+++ b/vnc/vnc.c
@@ -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;
}
}