assign strduped value (fixes coredumping)
authorMiloš Mulač <mulac@civ.zcu.cz>
Mon, 12 Feb 2007 12:45:42 +0000 (12:45 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Mon, 12 Feb 2007 12:45:42 +0000 (12:45 +0000)
org.glite.lb.server/src/process_event_pbs.c

index c6c4fcd..21a7a60 100644 (file)
@@ -70,7 +70,7 @@ int processEvent_PBS(intJobStat *js, edg_wll_Event *e, int ev_seq, int strict, c
                        }
                        if (USABLE_DATA(res)) {
                                if (!js->pub.pbs_queue)
-                                       strdup(e->PBSQueued.queue);
+                                       js->pub.pbs_queue = strdup(e->PBSQueued.queue);
                                assert(!strcmp(js->pub.pbs_queue, e->PBSQueued.queue));
                                rep(js->pub.pbs_owner,e->PBSQueued.owner);
                                rep(js->pub.pbs_name,e->PBSQueued.name);