Re: Redundant validity check in stock code.

From: George Greer (
Date: 07/25/02

On Thu, 25 Jul 2002, Thomas Arp wrote:

>Hey all,
>A couple of places in the code, there is a redundant check for
>validity of a variable. In all cases, the check refers to
>nlen < 0
>where nlen is a size_t (which is unsigned). Also, as you can see
>from the below code, nlen must be initialized to a positive number
>(or 0) before this line, as snprintf() always returns a positive
>number or 0.

It's supposed to be 'int', so I must've messed them up.

George Greer

   | FAQ: |
   | Archives: |
   | Newbie List:   |

This archive was generated by hypermail 2b30 : 06/25/03 PDT