Skip to content

Commit

Permalink
Fix wrong reuse of ed1 in update_job()
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Jul 24, 2016
1 parent c5c876c commit e1239a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dird/ua_update.c
Expand Up @@ -957,7 +957,7 @@ static bool update_pool(UAContext *ua)
static bool update_job(UAContext *ua)
{
int i;
char ed1[50], ed2[50], ed3[50];
char ed1[50], ed2[50], ed3[50], ed4[50];
POOL_MEM cmd(PM_MESSAGE);
JOB_DBR jr;
CLIENT_DBR cr;
Expand Down Expand Up @@ -1058,10 +1058,10 @@ static bool update_job(UAContext *ua)
jr.cStartTime,
jr.cSchedTime,
jr.cEndTime,
edit_uint64(jr.JobTDate, ed1),
edit_uint64(jr.FileSetId, ed2),
edit_uint64(jr.JobTDate, ed2),
edit_uint64(jr.FileSetId, ed3),
jr.JobType,
edit_int64(jr.JobId, ed3));
edit_int64(jr.JobId, ed4));
if (!db_sql_query(ua->db, cmd.c_str())) {
ua->error_msg("%s", db_strerror(ua->db));
return false;
Expand Down

0 comments on commit e1239a5

Please sign in to comment.