Skip to content
Snippets Groups Projects
Commit aa3e51e2 authored by Guilherme Amadio's avatar Guilherme Amadio
Browse files

Fix null pointer usage in TCondor

fPool should be used in Form() when it's not null,
not the reverse.

Related issues: ROOT-10127, ROOT-10138
parent 9562e6d7
No related branches found
No related tags found
No related merge requests found
...@@ -193,7 +193,7 @@ TCondorSlave *TCondor::ClaimVM(const char *vm, const char *cmd) ...@@ -193,7 +193,7 @@ TCondorSlave *TCondor::ClaimVM(const char *vm, const char *cmd)
TList *TCondor::GetVirtualMachines() const TList *TCondor::GetVirtualMachines() const
{ {
TString poolopt = fPool ? "" : Form("-pool %s", fPool.Data()); TString poolopt = fPool ? Form("-pool %s", fPool.Data()) : "";
TString cmd = Form("condor_status %s -format \"%%s\\n\" Name", poolopt.Data()); TString cmd = Form("condor_status %s -format \"%%s\\n\" Name", poolopt.Data());
PDB(kCondor,2) Info("GetVirtualMachines","command: %s", cmd.Data()); PDB(kCondor,2) Info("GetVirtualMachines","command: %s", cmd.Data());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment