From 90365e9de261106dedc76927e48e77a6bb7c3c40 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sat, 5 Nov 2011 16:45:43 +0100 Subject: [PATCH] dlight.c: do not call perror when dlhist_open() fails --- dlight.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dlight.c b/dlight.c index a6cc273..d027db5 100644 --- a/dlight.c +++ b/dlight.c @@ -118,10 +118,8 @@ int main(int argc, char *argv[]) { return 1; } - if (dlhist_open() < 0) { - perror("dlhist"); + if (dlhist_open() < 0) return 1; - } process(config);