summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_cache.c
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 /xrdp/xrdp_cache.c
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 'xrdp/xrdp_cache.c')
-rw-r--r--xrdp/xrdp_cache.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/xrdp/xrdp_cache.c b/xrdp/xrdp_cache.c
index 7eba0b90..83e91ed9 100644
--- a/xrdp/xrdp_cache.c
+++ b/xrdp/xrdp_cache.c
@@ -128,14 +128,14 @@ xrdp_cache_reset(struct xrdp_cache* self,
int APP_CC
xrdp_cache_add_bitmap(struct xrdp_cache* self, struct xrdp_bitmap* bitmap)
{
- int i;
- int j;
- int oldest;
- int cache_id;
- int cache_idx;
- int bmp_size;
- int e;
- int Bpp;
+ int i = 0;
+ int j = 0;
+ int oldest = 0;
+ int cache_id = 0;
+ int cache_idx = 0;
+ int bmp_size = 0;
+ int e = 0;
+ int Bpp = 0;
e = bitmap->width % 4;
if (e != 0)