diff options
Diffstat (limited to 'cli_classic.c')
-rw-r--r-- | cli_classic.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cli_classic.c b/cli_classic.c index b79f953c..0591bfeb 100644 --- a/cli_classic.c +++ b/cli_classic.c @@ -383,6 +383,11 @@ int main(int argc, char *argv[]) fprintf(stderr, "Log file not supported in standalone mode. Aborting.\n"); cli_classic_abort_usage(); #else /* STANDALONE */ + if (logfile) { + fprintf(stderr, "Warning: -o/--output specified multiple times.\n"); + free(logfile); + } + logfile = strdup(optarg); if (logfile[0] == '\0') { fprintf(stderr, "No log filename specified.\n"); |