Re: [PATCH] crypto/testmgr: fix uninitialized warning from gcc

2009-12-10 Thread Herbert Xu
On Wed, Dec 09, 2009 at 06:52:04AM -0500, Mike Frysinger wrote: > Since err is not set to a value if tcount is 0, gcc issues a warning: > crypto/testmgr.c: In function ‘test_cprng’: > crypto/testmgr.c:1204: warning: ‘err’ may be used uninitialized in this > function > > Since this is test code, f

[PATCH] crypto/testmgr: fix uninitialized warning from gcc

2009-12-09 Thread Mike Frysinger
Since err is not set to a value if tcount is 0, gcc issues a warning: crypto/testmgr.c: In function ‘test_cprng’: crypto/testmgr.c:1204: warning: ‘err’ may be used uninitialized in this function Since this is test code, forcing initialized sanity should be fine. Signed-off-by: Mike Frysinger ---