diff options
author | Nicola Ruggero <nicola@nxnt.org> | 2010-11-03 16:59:26 +0100 |
---|---|---|
committer | Nicola Ruggero <nicola@nxnt.org> | 2010-11-03 16:59:26 +0100 |
commit | 4cf06dbbcb8522be5fa069976c8f361fc874039f (patch) | |
tree | 6e074a89c4edadf9a75d648d1f9daf36079c03aa /vnc | |
parent | 104f762e5d3dcd659415632f442e745cef5a3bf2 (diff) | |
download | xrdp-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.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; } } |