From 0153d2876f1336c1b6335a7fc98533e547201023 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 14 Sep 2012 15:00:47 -0500 Subject: [PATCH] main: ensure program invocation with no package arguments always sends error messages to stderr --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 0947d8a..d9e05f0 100644 --- a/main.c +++ b/main.c @@ -780,7 +780,7 @@ main(int argc, char *argv[]) if (pkgq_head == NULL) { - fprintf(error_msgout, "Please specify at least one package name on the command line.\n"); + fprintf(stderr, "Please specify at least one package name on the command line.\n"); return EXIT_FAILURE; }