2eb08d2 Tickets 34-38 - coverity 13179-13183 - Dereference before NULL check

Authored and Committed by rmeggins 9 years ago
1 file changed. 41 lines added. 7 lines removed.
    Tickets 34-38 - coverity 13179-13183 - Dereference before NULL check
    
    https://fedorahosted.org/nunc-stans/ticket/34
    https://fedorahosted.org/nunc-stans/ticket/35
    https://fedorahosted.org/nunc-stans/ticket/36
    https://fedorahosted.org/nunc-stans/ticket/37
    https://fedorahosted.org/nunc-stans/ticket/38
    Reviewed by: mreynolds (Thanks!)
    Branch: master
    Fix Description: If job is passed to an ns_add job func, init job
    to NULL.  If the job alloc fails, return failure immediately.
    In ns_thrpool_destroy, tp->event_q_wakeup_job should never be NULL.
    Platforms tested: Fedora 21
    Flag Day: no
    Doc impact: no
    
        
file modified
+41 -7