[Home]

Summary:ASTERISK-05796: [patch] uninitialized variable
Reporter:Luigi Rizzo (rizzo)Labels:
Date Opened:2005-12-07 10:27:18.000-0600Date Closed:2008-01-15 16:04:54.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_db
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) db.diff
Description:the recent removal of some apps left retval in load_module()
uninitialized in its first access.
the attached trivial patch fixes it.

found by gcc -Wall -W -Werror
Comments:By: Russell Bryant (russell) 2005-12-08 10:54:47.000-0600

Oops.  :)

It is now fixed in r7391 of the trunk, thanks!

By: Digium Subversion (svnbot) 2008-01-15 16:04:54.000-0600

Repository: asterisk
Revision: 7391

U   trunk/apps/app_db.c

------------------------------------------------------------------------
r7391 | russell | 2008-01-15 16:04:53 -0600 (Tue, 15 Jan 2008) | 3 lines

fix a bug from the recent removal of deprecated applications by initializing
a variable on its first use (issue ASTERISK-5796)

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

http://svn.digium.com/view/asterisk?view=rev&revision=7391