From e8aa845bcf37e9ec7709c49af77c906332225c93 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
Date: Sat, 19 Jul 2014 15:35:48 -0400
Subject: [PATCH] escape: fix return code
(cherry picked from commit 91a81d93b569a98e04566eef1753a0956ba035f3)
---
src/escape/escape.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/escape/escape.c b/src/escape/escape.c
index ae0c183eca..ba2fb4789f 100644
--- a/src/escape/escape.c
+++ b/src/escape/escape.c
@@ -235,5 +235,5 @@ int main(int argc, char *argv[]) {
fputc('\n', stdout);
finish:
- return r ? EXIT_FAILURE : EXIT_SUCCESS;
+ return r <= 0 ? EXIT_FAILURE : EXIT_SUCCESS;
}