Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH 08/17: subst: remove dead code



Found by Coverity (Issue 1255810).
---
 Src/subst.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Src/subst.c b/Src/subst.c
index 4100803..5136010 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -1317,7 +1317,7 @@ get_intarg(char **s, int *delmatchp)
     if (ret < 0)
 	ret = -ret;
     *delmatchp = arglen;
-    return ret < 0 ? -ret : ret;
+    return ret;
 }
 
 /* Parsing for the (e) flag. */
-- 
2.2.0.GIT



Messages sorted by: Reverse Date, Date, Thread, Author