Commit 7b9bd653 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: drop a useless assert, and don't abort over an unhandled option

No related merge requests found
Showing with 1 addition and 6 deletions
+1 -6
...@@ -2636,7 +2636,6 @@ int main(int argc, char **argv) ...@@ -2636,7 +2636,6 @@ int main(int argc, char **argv)
refresh_needed = TRUE; refresh_needed = TRUE;
} }
#endif #endif
if (currmenu != MMAIN) if (currmenu != MMAIN)
display_main_list(); display_main_list();
...@@ -2663,7 +2662,4 @@ int main(int argc, char **argv) ...@@ -2663,7 +2662,4 @@ int main(int argc, char **argv)
/* Read in and interpret keystrokes. */ /* Read in and interpret keystrokes. */
do_input(TRUE); do_input(TRUE);
} }
/* We should never get here. */
assert(FALSE);
} }
...@@ -1167,8 +1167,7 @@ void parse_rcfile(FILE *rcstream, bool syntax_only) ...@@ -1167,8 +1167,7 @@ void parse_rcfile(FILE *rcstream, bool syntax_only)
tabsize = -1; tabsize = -1;
} }
free(option); free(option);
} else }
assert(FALSE);
} }
#ifdef ENABLE_COLOR #ifdef ENABLE_COLOR
......
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