[PATCH 09/14] opt_arg(): val is always non-NULL
- From
Michael Haggerty <mhagger@alum.mit.edu>
- Date
- Mar 17, 2015, 16:00 UTC
- Message-ID
- <1426608016-2978-10-git-send-email-mhagger@alum.mit.edu>
- In-Reply-To
- <1426608016-2978-1-git-send-email-mhagger@alum.mit.edu>
opt_arg() is never called with val set to NULL, so remove the code for handling that eventuality (which anyway wasn't handled consistently in the function).
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> --- diff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/diff.c b/diff.c index a350677..6e3f498 100644 --- a/diff.c +++ b/diff.c @@ -3367,7 +3367,7 @@ static int opt_arg(const char *arg, int arg_short, const char *arg_long, int *va c = *++arg; if (!c) return 1; - if (val && isdigit(c)) { + if (isdigit(c)) { char *end; int n = strtoul(arg, &end, 10); if (*end)
-- 2.1.4