Finally really fixing the segfault.
authorZsombor Nagy <zsombor@niif.hu>
Wed, 9 Nov 2011 12:44:11 +0000 (13:44 +0100)
committerZsombor Nagy <zsombor@niif.hu>
Wed, 9 Nov 2011 12:44:11 +0000 (13:44 +0100)
ext/arc_submit.cpp

index 34e0be0..9224fb8 100644 (file)
@@ -157,6 +157,8 @@ char* arc_submit(int argc, char **argv) {
        
   std::list<Arc::Job> submittedJobs;
   
+  submittedJobs.push_back(Arc::Job());  
+
   if (ChosenBroker->Submit(targen.GetExecutionTargets(), jobdesc, submittedJobs.back())) {
     job_id = new_str(submittedJobs.back().JobID.str().c_str());
     logger.msg(Arc::DEBUG, "Job submitted with ID: %s", job_id);