Red Hat Bugzilla – Bug 159165
local variable used before set
Last modified: 2007-11-30 17:11:07 EST
Description of problem:
I just tried to compile package gnome-pilot-conduits-2.0.13-1 from Redhat
Fedora Core development tree with the most excellent Intel C compiler.
The compiler said
email_conduit.c(456): remark #592: variable "size" is used before its value is set
The source code is
dlp_WriteRecord( dbi->pilot_socket, dbHandle, attr, recID, 3,
pi_buf, size, 0);
Suggest initialise local variable "size" before first use.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Thanks for this report; I'll look into getting this fixed.
The "size" local used to be written back to at top of the loop in the syncronize
function by call to dlp_ReadNextRecInCategory; this was patched away, leaving a
genuine bug; another argument to this function was also wrong, leading to a
crash on synchronization if the send action was "file".
Rebuilding into dist-fc5-HEAD as gnome-pilot-conduits-2.0.13-3.FC5
This seems fixed in rawhide.