[haiku-commits] Re: haiku: hrev49006 - src/apps/showimage

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 07 Apr 2015 22:03:23 +0200

On 04/07/2015 09:55 PM, Axel Dörfler wrote:

Am 07/04/2015 um 18:17 schrieb janus2@xxxxxxxxx:
+ if (thread == B_NAME_NOT_FOUND)
+ break;

As I wrote in the comments, please never check for a specific error,
instead just use:
if (thread != B_OK)

Or a version that also works:
if (thread < 0)

:-)

CU, Ingo


Other related posts: