Skip to content

Commit

Permalink
Remove Coverity lint
Browse files Browse the repository at this point in the history
  • Loading branch information
semmerson committed Jul 18, 2018
1 parent e1f7529 commit d65a53d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGE_LOG
@@ -1,3 +1,6 @@
6.13.7.29
Eliminate Coverity Scan lint.

6.13.7.28 2018-07-18T15:33:52-0600
Added OESS makefiles.

Expand Down
4 changes: 2 additions & 2 deletions misc/Executor.c
Expand Up @@ -215,8 +215,8 @@ executor_unlock(Executor* const executor);
static void
job_run(Job* const job)
{
void* result;
int status;
void* result = NULL;
int status = 0;

job_lock(job);
if (!job->canceled) {
Expand Down
6 changes: 4 additions & 2 deletions misc/Future.c
Expand Up @@ -309,9 +309,11 @@ future_setResult(
future_assertValid(future);

future_lock(future);
future->runStatus = runStatus;
future->result = result;
future->wasCanceled = wasCanceled;
if (!wasCanceled) {
future->runStatus = runStatus;
future->result = result;
}
future->haveResults = true;

int status = pthread_cond_broadcast(&future->cond);
Expand Down

0 comments on commit d65a53d

Please sign in to comment.