1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 06:02:11 +02:00

Bug 360846: Extra space in build command

This commit is contained in:
Marc Khouzam 2011-10-14 05:48:39 -04:00
parent 58e5dd61e0
commit 04d4f11b53

View file

@ -1057,6 +1057,11 @@ public class Builder extends HoldsOptions implements IBuilder, IMatchKeyProvider
}
private String addCmd(String args, String cmd){
// Don't modify the args parameter if the cmd to add is emtpy.
// Bug 360846
if(cmd.length() == 0)
return args;
if(getCmdIndex(args, cmd) == -1){
if(args.length() != 0){
args += ' ';