Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: Read errors (was:Power Save feature kills playlist playback)
From: Björn Stenberg (bjorn_at_haxx.se)
Date: 2003-03-13


Mike Holden wrote:
> We sometimes return 0 for success,
> sometimes for error, but often use "if (somefunction())" type constructs,
> which can be misleading, since the value being tested may not follow the
> usual tradition of 0=true, anything else=false.

Maybe because it's actually the opposite. 0 == false, anything else == true. :-)

But I think you may indeed have found something. 'ret' should be initialized at the top of the loop, not at the bottom.

-- 
Björn



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa