Commit 1f4c12b3 authored by Committed by Zeeshan Ali
Fix incorrect error checking
Instead of checking for whether the error got set, check for a NULL retval instead. This avoids the application crashing later on if a particular call errors out but doesn't set the error.
Showing with 5 additions and 6 deletions