Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH 08/17: subst: remove dead code
- X-seq: zsh-workers 34105
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH 08/17: subst: remove dead code
- Date: Tue, 6 Jan 2015 06:25:40 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=As96N68PXJKf4JwmHWMWeBwfF75OSgxQljK4uYSPyKw=; b=DurxK1tuhyrNoZz0UKUPGgs8+0i+90W6ZFNHVxbXlxassAmuUbr+urvF3J6MfiQ2LO KNaZHan8cOVi52SMn9u/R1A2tkGabcLI6eRcY1q1fuVOnI/3drTdJQ2zVf6Powjjt54I zgfJM+00BBaLsFbDVpLirs4pOlQbEcbMC/1v/xNZznEUegBMhGFmqqm+OkbroPWLfE6h +hvOhjljYyPhkFeGk+ipvFAdjg4FGJBsrrL0QN1T+s3tzXhr1+Ktsf44Mztgd9A+JSyX C46zrKN473kBJbivc96omZAr4vPBQonc7DuXhuFHlUJCldwYxEicneXLPDP3MmaZho60 Qfzg==
- In-reply-to: <1420521949-30483-1-git-send-email-mikachu@gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1420521949-30483-1-git-send-email-mikachu@gmail.com>
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