Red Hat Bugzilla – Bug 113374
uninitialised local data ?
Last modified: 2007-11-30 17:10:35 EST
Description of problem:
I just tried to compile package beecrypt-3.0.1-0.20030630.1, from
Redhat Fedora Core 1.
The compiler said
mpbarrett.c:500: warning: `temp' might be used uninitialized in this
The source code is
if ((temp = *(pdata++))) /* break when first non-zero
word found */
/* if temp is still zero, then we're trying to raise x to
power zero, and result stays one */
It's pretty obvious that temp need to be initialised before the while
temp = 0;
as new code before the while loop.
mpbarrett.c:530: warning: `temp' might be used uninitialized in this
This seems to be a duplicate.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
psize is never 0, so temp is never not initialized.
I'll leave this for the upstream maintainer.