[Bug 351207] New: pam_pkcs11-0.6.0-45: local variable used before set
https://bugzilla.novell.com/show_bug.cgi?id=351207 Summary: pam_pkcs11-0.6.0-45: local variable used before set Product: openSUSE 11.0 Version: unspecified Platform: All OS/Version: openSUSE 11.0 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dcb314@hotmail.com QAContact: qa@suse.de Found By: --- I just tried to compile the package pam_pkcs11-0.6.0-45 The compiler said pkcs11_lib.c:289: warning: 'i' is used uninitialized in this function The source code is if (slot_num >= 0 && slot_num < module->slotCount && module->slots && module->slots[i] && PK11_IsPresent(module->slots[i])) { I agree with the compiler. Suggest initialise local variable "i" before first use. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=351207 Cristian Rodriguez <crrodriguez@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |crrodriguez@novell.com AssignedTo|bnc-team-screening@forge.provo.novell.com |sbrabec@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=351207 User sbrabec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=351207#c1 Stanislav Brabec <sbrabec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Stanislav Brabec <sbrabec@novell.com> 2008-09-25 08:06:25 MDT --- openSUSE 11.1 is no more affected, as it switched to NSS code. Anyway, fix applied to the Factory. It seems, that "slot_num" should be used instead of "i". -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com