I keep having a segmentation fault when I try to run recover.c.
I now have only 1 error when I run Valgrind.
Can somebody take a look at my code and give me some guidance ?
here is my code :
[code hidden]
Here's my valgrind output:
==18860== Memcheck, a memory error detector
==18860== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==18860== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info
==18860== Command: ./recover
==18860==
==18860== Conditional jump or move depends on uninitialised value(s)
==18860== at 0x4008B4: main (recover.c:49)
==18860==
�=18860==
==18860== HEAP SUMMARY:
==18860== in use at exit: 0 bytes in 0 blocks
==18860== total heap usage: 51 allocs, 51 frees, 28,968 bytes allocated
==18860==
==18860== All heap blocks were freed -- no leaks are possible
==18860==
==18860== For counts of detected and suppressed errors, rerun with: -v
==18860== Use --track-origins=yes to see where uninitialised values come from
==18860== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)