Re: [Midnight Commander] #151: Unitialized use of variable in edit.c
- From: "Ticket System" <tickets midnight-commander org>
- To: weigelt metux de
- Cc: mc-devel gnome org
- Subject: Re: [Midnight Commander] #151: Unitialized use of variable in edit.c
- Date: Wed, 07 Jan 2009 19:19:26 -0000
#151: Unitialized use of variable in edit.c
----------------------+-----------------------------------------------------
Reporter: metux | Owner:
Type: defect | Status: new
Priority: minor | Milestone: 4.6.2
Component: mc-core | Version: 4.6.1
Resolution: | Keywords:
Blocking: | Blockedby:
----------------------+-----------------------------------------------------
Changes (by winnie):
* priority: major => minor
Comment:
I think this is uncritical as c will get in every case initialised.
However if you would like to get rid of this warning initialise c to -3.
As this is the default return value for this function.
If you do this you could rewrite it partly in order to replace the four
return calls with only one. (After the if clause).
--
Ticket URL: <www.midnight-commander.org/ticket/151#comment:1>
Midnight Commander <www.midnight-commander.org>
Midnight Development Center
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]