[Libreoffice-commits] core.git: desktop/unx rsc/source
Varun
varun.dhall at studentpartner.com
Thu Mar 26 07:31:23 PDT 2015
desktop/unx/source/file_image_unx.c | 2 +-
rsc/source/rscpp/cpp6.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 69c2825708d1e78225ad2f515b792734443d8247
Author: Varun <varun.dhall at studentpartner.com>
Date: Sat Mar 7 16:41:40 2015 +0530
tdf#39440 cppcheck cleanliness, Fixing basic cpp errors
Initialized a non-initialized integer variable which is widely used in if else
Change-Id: Ibd99c0baa4cd3d4d409310a9a70dc7b421f6a8b2
Reviewed-on: https://gerrit.libreoffice.org/14780
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/desktop/unx/source/file_image_unx.c b/desktop/unx/source/file_image_unx.c
index eb3c0d5..fb67778 100644
--- a/desktop/unx/source/file_image_unx.c
+++ b/desktop/unx/source/file_image_unx.c
@@ -76,7 +76,7 @@ int file_image_pagein (file_image * image)
long s;
size_t k;
// force touching of each page despite the optimizer
- volatile char c = 0;
+ volatile char c =0;
if (image == 0)
return EINVAL;
diff --git a/rsc/source/rscpp/cpp6.c b/rsc/source/rscpp/cpp6.c
index b94c81f..74340dd 100644
--- a/rsc/source/rscpp/cpp6.c
+++ b/rsc/source/rscpp/cpp6.c
@@ -584,7 +584,7 @@ DEFBUF* defendel(char* name, int delete)
DEFBUF** prevp;
char* np;
int nhash;
- int temp;
+ int temp=0;
int size;
for (nhash = 0, np = name; *np != EOS;)
More information about the Libreoffice-commits
mailing list