[Midnight Commander] #151: Unitialized use of variable in edit.c

Ticket System tickets at midnight-commander.org
Wed Jan 7 19:19:26 UTC 2009


#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


More information about the mc-devel mailing list