summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVarun <varun.dhall@studentpartner.com>2015-03-07 16:41:40 +0530
committerCaolán McNamara <caolanm@redhat.com>2015-03-26 14:30:56 +0000
commit69c2825708d1e78225ad2f515b792734443d8247 (patch)
treedff561873b0f128ff698740ee1000aaa8d14ee57
parented1605c1ea01c8b8d7809e3682d5c2104c16fa41 (diff)
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@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--desktop/unx/source/file_image_unx.c2
-rw-r--r--rsc/source/rscpp/cpp6.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/desktop/unx/source/file_image_unx.c b/desktop/unx/source/file_image_unx.c
index eb3c0d56fc50..fb677781cf65 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 b94c81fe2395..74340ddc2b38 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;)