diff --git a/Timeline/Fl_Menu_Settings.C b/Timeline/Fl_Menu_Settings.C index ca922a5..2caa3a3 100644 --- a/Timeline/Fl_Menu_Settings.C +++ b/Timeline/Fl_Menu_Settings.C @@ -234,9 +234,10 @@ path_pop ( char *path ) s = rindex( path, '/' ); - s = s ? s : path; - - *(s + 1) = '\0'; + if ( s ) + *(s + 1) = '\0'; + else + *path = '\0'; } void