File 0001-return-0-instead-of-nothing.patch of Package ldapvi

From 321de50f1fdad359d3c552c569dc08c1ce36d56c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Jacke?= <bj@sernet.de>
Date: Thu, 15 Dec 2011 15:13:23 +0100
Subject: [PATCH 1/2] return 0 instead of nothing

---
 ldapvi/ldapvi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ldapvi/ldapvi.c b/ldapvi/ldapvi.c
index 7b312f8..77662ac 100644
--- a/ldapvi/ldapvi.c
+++ b/ldapvi/ldapvi.c
@@ -1465,7 +1465,7 @@ copy_sasl_output(FILE *out, char *sasl)
 	int line = 0;
 	int c;
 
-	if (lstat(sasl, &st) == -1) return;
+	if (lstat(sasl, &st) == -1) return 0;
 	if ( !(in = fopen(sasl, "r"))) syserr();
 
 	if (st.st_size > 0) {
-- 
1.7.6

openSUSE Build Service is sponsored by