Commit c1e3ab31 authored by David Griffith's avatar David Griffith

Merge branch 'segfault' into 'master'

Segfault fix for issue 95

Closes #95

See merge request !81
parents d3bcc8e6 244804b0
......@@ -332,7 +332,10 @@ void os_process_arguments (int argc, char *argv[])
/* Now strip off the extension */
p = strrchr(f_setup.story_name, '.');
*p = '\0'; /* extension removed */
if ( p != NULL )
{
*p = '\0'; /* extension removed */
}
/* Create nice default file names */
......
......@@ -146,7 +146,10 @@ void os_process_arguments(int argc, char *argv[])
/* Now strip off the extension */
p = strrchr(f_setup.story_name, '.');
*p = '\0'; /* extension removed */
if ( p != NULL )
{
*p = '\0'; /* extension removed */
}
/* Create nice default file names */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment