summaryrefslogtreecommitdiff
path: root/rsc
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 /rsc
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>
Diffstat (limited to 'rsc')
-rw-r--r--rsc/source/rscpp/cpp6.c2
1 files changed, 1 insertions, 1 deletions
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;)