]> granicus.if.org Git - neomutt/commitdiff
Redundant if clause
authorBertram Scharpf <software@bertram-scharpf.de>
Mon, 18 Jun 2018 14:41:34 +0000 (16:41 +0200)
committerRichard Russon <rich@flatcap.org>
Mon, 18 Jun 2018 23:45:59 +0000 (00:45 +0100)
url.c

diff --git a/url.c b/url.c
index b20f5e096f44e8fa3075ecbf018c8423168daea3..5820580d934e9d9de116caa53bd33c729c18c166 100644 (file)
--- a/url.c
+++ b/url.c
@@ -187,10 +187,11 @@ int url_parse(struct Url *u, char *src)
 
   u->path = strchr(src, '/');
   if (u->path)
+  {
     *u->path++ = '\0';
-
-  if (u->path && url_pct_decode(u->path) < 0)
-    goto err;
+    if (url_pct_decode(u->path) < 0)
+      goto err;
+  }
 
   t = strrchr(src, '@');
   if (t)