From: Andre Noll <maan@systemlinux.org>
Date: Fri, 30 May 2008 16:09:13 +0000 (+0200)
Subject: Check the return value of print_statistics().
X-Git-Tag: v0.0.2~36^2~1
X-Git-Url: https://git.tuebingen.mpg.de/?a=commitdiff_plain;h=9aeecd9832a8479a65d9b8cc013917ee62961e1f;p=adu.git

Check the return value of print_statistics().

It may fail.
---

diff --git a/adu.c b/adu.c
index b025e2f..7c6ba6f 100644
--- a/adu.c
+++ b/adu.c
@@ -972,9 +972,9 @@ static int com_select(void)
 	ret = read_uid_file();
 	if (ret < 0)
 		return ret;
-	print_statistics();
+	ret = print_statistics();
 	close_all_tables();
-	return 1;
+	return ret;
 }
 
 static int check_args(void)