diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-07 09:26:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-07 12:39:11 +0100 |
commit | 5404f75a2fa863b97bdf8432f647053f0bff726e (patch) | |
tree | 119d2cede534f5ce1173422df99a0e532d6a7a28 /solenv | |
parent | 39efec060719bb2654ba20844ba02429371a4ffb (diff) |
loplugin:collapseif in sdext..svx
Change-Id: I188d9e9b53e00acfbae3c7acd54de28f084c4b3f
Reviewed-on: https://gerrit.libreoffice.org/62985
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/bin/concat-deps.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/solenv/bin/concat-deps.c b/solenv/bin/concat-deps.c index b4f224450ce2..b01d7b69bbcd 100644 --- a/solenv/bin/concat-deps.c +++ b/solenv/bin/concat-deps.c @@ -848,15 +848,12 @@ static void print_fullpaths(char* line) } token = end; eat_space(&token); - if (!target_seen) + if (!target_seen && ':' == *token) { - if (':' == *token) - { - target_seen = 1; - fputc(':', stdout); - ++token; - eat_space(&token); - } + target_seen = 1; + fputc(':', stdout); + ++token; + eat_space(&token); } } } |