Code Cleanup: use NULL for pointer checks and remove joke.

This commit is contained in:
Campbell Barton
2013-11-22 10:43:42 +11:00
parent f801f8057d
commit a5183d7a87
3 changed files with 11 additions and 11 deletions

View File

@@ -477,7 +477,7 @@ static int startffmpeg(struct anim *anim)
const int *inv_table;
#endif
if (anim == 0) return(-1);
if (anim == NULL) return(-1);
streamcount = anim->streamindex;
@@ -960,7 +960,7 @@ static ImBuf *ffmpeg_fetchibuf(struct anim *anim, int position,
int new_frame_index = 0; /* To quiet gcc barking... */
int old_frame_index = 0; /* To quiet gcc barking... */
if (anim == 0) return (0);
if (anim == NULL) return (0);
av_log(anim->pFormatCtx, AV_LOG_DEBUG, "FETCH: pos=%d\n", position);

View File

@@ -523,9 +523,9 @@ void WM_jobs_kill(wmWindowManager *wm, void *owner, void (*startjob)(void *, sho
wm_job = wm->jobs.first;
while (wm_job) {
if (wm_job->owner == owner || wm_job->startjob == startjob) {
wmJob *bill = wm_job;
wmJob *wm_job_kill = wm_job;
wm_job = wm_job->next;
wm_jobs_kill_job(wm, bill);
wm_jobs_kill_job(wm, wm_job_kill);
}
else {
wm_job = wm_job->next;