1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-29 21:36:46 +02:00

This should fix segfault and remove one-line comments

This commit is contained in:
mannol
2014-03-11 23:22:27 +01:00
parent 7c63bd80d6
commit ed3e9b476d
11 changed files with 42 additions and 51 deletions

View File

@ -253,7 +253,7 @@ int add_window(Tox *m, ToxWindow w)
/* Deletes window w and cleans up */
void del_window(ToxWindow *w)
{
active_window = windows; // Go to prompt screen
active_window = windows; /* Go to prompt screen */
delwin(w->window);
memset(w, 0, sizeof(ToxWindow));
@ -279,7 +279,7 @@ void set_next_window(int ch)
if (active_window->window)
return;
if (active_window == inf) { // infinite loop check
if (active_window == inf) { /* infinite loop check */
endwin();
fprintf(stderr, "set_next_window() failed. Aborting...\n");
exit(EXIT_FAILURE);