summaryrefslogtreecommitdiffabout
path: root/src/job.c
Unidiff
Diffstat (limited to 'src/job.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/job.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/job.c b/src/job.c
index 7e3fdf5..764e463 100644
--- a/src/job.c
+++ b/src/job.c
@@ -202,13 +202,13 @@ schedule_job (const struct spool *spool, uid_t uid)
202 logmsg (LOG_DEBUG, _("scheduling job: %s, %lu"), 202 logmsg (LOG_DEBUG, _("scheduling job: %s, %lu"),
203 spool->tag, (unsigned long)uid); 203 spool->tag, (unsigned long)uid);
204 204
205 job = job_locate (spool, uid); 205 job = job_locate (spool, uid);
206 if (!job) 206 if (!job)
207 { 207 {
208 job = xzalloc (sizeof (*job)); 208 job = grecs_zalloc (sizeof (*job));
209 job->spool = spool; 209 job->spool = spool;
210 job->uid = uid; 210 job->uid = uid;
211 job->pid = -1; 211 job->pid = -1;
212 time (&job->timestamp); 212 time (&job->timestamp);
213 job_insert (job, NULL); 213 job_insert (job, NULL);
214 } 214 }

Return to:

Send suggestions and report system problems to the System administrator.