Skip to content
Browse files

retag

  • Loading branch information...
2 parents e810357 + d67a688 commit 457e069c4007a43117c235acc1f7a0ba885bda3c @dannyauble dannyauble committed Apr 23, 2009
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/plugins/accounting_storage/mysql/mysql_jobacct_process.c
View
5 src/plugins/accounting_storage/mysql/mysql_jobacct_process.c
@@ -637,8 +637,11 @@ extern List mysql_jobacct_process_get_jobs(mysql_conn_t *mysql_conn, uid_t uid,
job->alloc_cpus = atoi(row[JOB_REQ_ALLOC_CPUS]);
job->associd = atoi(row[JOB_REQ_ASSOCID]);
- if(row[JOB_REQ_WCKEY] && row[JOB_REQ_WCKEY][0])
+ /* we want a blank wckey if the name is null */
+ if(row[JOB_REQ_WCKEY])
job->wckey = xstrdup(row[JOB_REQ_WCKEY]);
+ else
+ job->wckey = xstrdup("");
job->wckeyid = atoi(row[JOB_REQ_WCKEYID]);
if(row[JOB_REQ_CLUSTER] && row[JOB_REQ_CLUSTER][0])

0 comments on commit 457e069

Please sign in to comment.
Something went wrong with that request. Please try again.