I emailed a patch for this but for some reason I can't reproduce this now. Perhaps garbage collecting might have been involved too. The fix might still be worth looking at though. Sorry this is a bit of a useless bug report!
Version 4.8.0
When using calcurse (-c /path/to/apts) -G, there is a segfault when the first note is encountered. This seems to be because src/ical.c tries to fclose(fp) even if fopen(note_file, "r") failed so fp isn't pointing to a file.
To reproduce:
"calcurse -G" with some notes
(Note I was also using -c when I encountered this)
I emailed a patch for this but for some reason I can't reproduce this now. Perhaps garbage collecting might have been involved too. The fix might still be worth looking at though. Sorry this is a bit of a useless bug report!
Version 4.8.0
When using calcurse (-c /path/to/apts) -G, there is a segfault when the first note is encountered. This seems to be because src/ical.c tries to fclose(fp) even if fopen(note_file, "r") failed so fp isn't pointing to a file.
To reproduce:
"calcurse -G" with some notes
(Note I was also using -c when I encountered this)
The fix I found was to edit src/ical.c at line 216 (Patch attached) 0000-Don-t-fclose-fp-if-it-failed-to-fopen.patch.txt