summaryrefslogtreecommitdiff
path: root/rsc
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2015-09-05 13:15:15 +0200
committerJulien Nabet <serval2412@yahoo.fr>2015-09-05 13:42:02 +0000
commitf0208db49d59f78c96a30b05e31a226dbde9b084 (patch)
tree05e37e96a27c48d66fa601c929b5d0f44986b848 /rsc
parentd417059dae303685de7aa0f4b1c192ffcf5304d5 (diff)
cppcheck: fix some redundantCondition warnings
Change-Id: If53d33fb4d9ca9dc1babb9043bd07c5d29fe74c2 Reviewed-on: https://gerrit.libreoffice.org/18353 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'rsc')
-rw-r--r--rsc/source/rscpp/cpp1.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/rsc/source/rscpp/cpp1.c b/rsc/source/rscpp/cpp1.c
index d8e20f46d96a..7f4e0799b803 100644
--- a/rsc/source/rscpp/cpp1.c
+++ b/rsc/source/rscpp/cpp1.c
@@ -557,8 +557,7 @@ void sharp()
if (infile->fp != NULL)
{
name = (infile->progname != NULL) ? infile->progname : infile->filename;
- if (sharpfilename == NULL ||
- (sharpfilename != NULL && !streq(name, sharpfilename)))
+ if (sharpfilename == NULL || (!streq(name, sharpfilename)))
{
if (sharpfilename != NULL)
free(sharpfilename);