|Re: [AD] if-testing for array|
[ Thread Index |
| More lists.liballeg.org/allegro-developers Archives
On 2006-11-09, Milan Mimica <milan.mimica@xxxxxxxxxx> wrote:
> I gave gcc-4.2.0-prerelease a try over allegro code and it reported two
> valid warnings. It says that the address of an array will always
> evaluate as 'true'. The attached patch fixes the two cases.
> In exkeys example I just removed the test for "str" because ustrzncpy()
> guarantees that the destination will be null-terminated, thus
> textprintf_ex will just print a empty string.