yes because i added an action and forgot to add it in this function. ;-) Best regards,
Antonin. 2009/12/2 Risto Vaarandi <[email protected]>: > Antonin, > > the point is that the statement > > else { $result .= "unknown action type"; } > > should never be reached, since $actionlist->[$i] can only have a known > value (non-existing action names are filtered out during configuration > file parsing). > > Of course, for the reason of correctness the statement could contain > exit(1) call, since reaching this particular else-block means that there > is a bug in the code. > > Did one of your SEC instances somehow managed to reach this block?? > > BR, > risto > > On 12/02/2009 12:04 PM, antonin mora wrote: >> Hi, >> >> i don't know who to contact to declare a bug. >> >> In this function : >> >> sub actionlist2str { >> >> my($actionlist) = $_[0]; >> my($i, $j); >> my($result); >> >> $i = 0; >> $j = scalar(@{$actionlist}); >> $result = ""; >> >> while ($i< $j) { >> >> if ($actionlist->[$i] == NONE) { >> $result .= "none"; >> ++$i; >> } >> >> ... >> else { $result .= "unknown action type"; } >> >> The loop will never finish if the action is unknowned because $i will >> never change. >> >> Best regards, >> >> Antonin. >> >> ------------------------------------------------------------------------------ >> Join us December 9, 2009 for the Red Hat Virtual Experience, >> a free event focused on virtualization and cloud computing. >> Attend in-depth sessions from your desk. Your couch. Anywhere. >> http://p.sf.net/sfu/redhat-sfdev2dev >> _______________________________________________ >> Simple-evcorr-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users >> > > > ------------------------------------------------------------------------------ > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and cloud computing. > Attend in-depth sessions from your desk. Your couch. Anywhere. > http://p.sf.net/sfu/redhat-sfdev2dev > _______________________________________________ > Simple-evcorr-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users > ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ Simple-evcorr-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users
