Menu

#1 Little Segmentation Fault Bug

open
None
7
2014-08-17
2000-09-03
No

The version 0.0.2 compiles without problems, but at the very first execution, it returns a segmentation fault. The problem resides in the line shown bellow:
.......
checa_origem("email.txt"); ======> error is here!!!
for(x=verifica_mail(string1,string2);x>0;x--)
{
le_email(string1,string2);
if(verifica_string("closed",string5) && checa_origem("email.txt"))
{
..............

at the main function. The function checa_origem("filename") checks if the email written to filename is a valid email. but email.txt dont exists or is blank, so an error ocurrs.
Fix: just remove that line. It is trash that i forgot to remove.. Sorry, people.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB