diff options
author | Varun <varun.dhall@studentpartner.com> | 2015-03-07 16:41:40 +0530 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-26 14:30:56 +0000 |
commit | 69c2825708d1e78225ad2f515b792734443d8247 (patch) | |
tree | dff561873b0f128ff698740ee1000aaa8d14ee57 | |
parent | ed1605c1ea01c8b8d7809e3682d5c2104c16fa41 (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.c | 2 | ||||
-rw-r--r-- | rsc/source/rscpp/cpp6.c | 2 |
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;) |