Make program resilient to non-existent default module #4
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In the event the user has no default module installed and no pages in the config file, the program segfaults. Example backtrace where default module is "FOO":
(gdb) bt
#0 sword::SWModule::getDescription (this=0x0) at ../src/modules/swmodule.cpp:210
#1 0x0000000000404e41 in scabbard::getModDescription (this=0x7fffffffc4f0, modname=0x4e0b90 "FOO")
at scabbard.cpp:187
#2 0x000000000040bf98 in main (argc=1, argv=0x7fffffffda28) at scriptura.cpp:313
Fixed by 90bb1d499cd7457aee7f0d1c35203421d70687e8