Mailinglist Archive: opensuse-bugs (7967 mails)

< Previous Next >
[Bug 241839] New: asterisk-1.2.13-34: local variable used before set
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Fri, 2 Feb 2007 14:38:55 -0700 (MST)
  • Message-id: <bug-241839-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=241839

Summary: asterisk-1.2.13-34: local variable used before set
Product: openSUSE 10.3
Version: unspecified
Platform: Other
OS/Version: SuSE Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Other
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: dcb314@xxxxxxxxxxx
QAContact: qa@xxxxxxx


I just tried to compile package asterisk-1.2.13-34
with the Intel C compiler.

The compiler said

chan_capi.c(144): warning #592: variable "CMSG2" is used before its value is
set

The source code is

while (!IS_LISTEN_CONF(&CMSG2)) {

but

/usr/include/capiutils.h:#define IS_LISTEN_CONF(m) ((m)->Command==0x05 &&
(m)->Subcommand==0x81)

I agree with the compiler. Suggest initialise local variable
"CMSG2" 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, or are watching someone who is.

< Previous Next >
Follow Ups