]> granicus.if.org Git - neomutt/commitdiff
tidy code
authorRichard Russon <rich@flatcap.org>
Wed, 17 Feb 2016 19:48:34 +0000 (19:48 +0000)
committerRichard Russon <rich@flatcap.org>
Mon, 4 Apr 2016 02:33:28 +0000 (03:33 +0100)
hdrline.c

index 9a0fa73de9c986f282ec0dcaf49b5b700b269afe..ddde2e45765abe2be2d9087b67943e2475047204 100644 (file)
--- a/hdrline.c
+++ b/hdrline.c
@@ -470,18 +470,15 @@ hdr_format_str (char *dest,
        int j = 0;
 
        for (i = 0; hdr->env->from && hdr->env->from->personal &&
-                   hdr->env->from->personal[i] && j < SHORT_STRING - 1; i++)
-       {
-         if (isalpha ((int)hdr->env->from->personal[i]))
-         {
-           if (!iflag)
-           {
+                   hdr->env->from->personal[i] && (j < (SHORT_STRING - 1)); i++) {
+         if (isalpha ((int) hdr->env->from->personal[i])) {
+           if (!iflag) {
              buf2[j++] = hdr->env->from->personal[i];
              iflag = TRUE;
            }
-         }
-         else
+         } else {
            iflag = FALSE;
+         }
        }
 
        buf2[j] = '\0';