[ libetpan-Bugs-1583924 ] libetpan-0.47: local variable used before set

"SourceForge.net" <[email protected]> Tue, 24 Oct 2006 15:02:40 -0700
Newsgroups gmane.mail.libetpan.user
Message-ID <[email protected]>
Bugs item #1583924, was opened at 2006-10-24 18:02
Message generated for change (Comment added) made by hoa
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=429696&aid=1583924&group_id=41064

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: other
Group: Latest stable - libEtPan!
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: anosek (anosek)
>Assigned to: DINH V. Hoa (hoa)
Summary: libetpan-0.47: local variable used before set

Initial Comment:
Forwarding from
https://bugzilla.novell.com/show_bug.cgi?id=212522. The
bug remains also for version 0.47:


I just tried to compile package libetpan-0.46-3 with the 
Intel C compiler.

The compiler said

dbdriver.c(259): warning #592: variable "serialized" is
used
before its value is set
dbdriver.c(259): warning #592: variable
"serialized_len" is used before its
value is set

The source code is

  mmapstr = mmap_string_new_len(serialized,
serialized_len);

I have read the code and I agree with the compiler.
Suggest initialise 
local variables "serialized" and "serialized_len"
before first use.

----------------------------------------------------------------------

>Comment By: DINH V. Hoa (hoa)
Date: 2006-10-24 22:02

Message:
Logged In: YES 
user_id=201468

By the way, the attached patch was not the right fix.


----------------------------------------------------------------------

Comment By: DINH V. Hoa (hoa)
Date: 2006-10-24 21:55

Message:
Logged In: YES 
user_id=201468

There is obviously something wrong with that code.
I am committing a fix.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=429696&aid=1583924&group_id=41064

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642