Skip to content

Commit

Permalink
goaccess.c: Curses should not be initialized if '--process-and-exit' …
Browse files Browse the repository at this point in the history
…is in effect

  This amends commit: dcc5bbd
  • Loading branch information
TerraTech committed Sep 28, 2017
1 parent 6bf71ff commit 4cde573
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/goaccess.c
Original file line number Diff line number Diff line change
Expand Up @@ -1451,11 +1451,15 @@ main (int argc, char **argv)
initializer ();

/* set stdout */
if (conf.output_stdout)
if (conf.process_and_exit) {
/* ignore outputting, process only */
} else if (conf.output_stdout) {
set_standard_output ();
}
/* set curses */
else
else {
set_curses (&quit);
}

/* no log/date/time format set */
if (quit)
Expand Down

0 comments on commit 4cde573

Please sign in to comment.